Say I wanted to make my hero buy something from another character. Not a potion or weapon, something that is not a shop item. A house or a new sprite for example.
I want my hero to be able to pay a person to unlock a door. I also want the person to not unlock the door if the hero does not have enough money.
Using the "Change Money" event command, I can't do this. Sure, he takes the money and unlocks the door, but if the hero has insufficient money he unlocks it anyway! :o
How can I fix this? ???
Rather easily with a conditional branch. It's on Page 3 of the eventing menu if you use 2k3 (not sure on 2k :()
[spoiler](https://rmrk.net/proxy.php?request=http%3A%2F%2Fi7.photobucket.com%2Falbums%2Fy262%2Fthornchaos%2Fexample.png%3Ft%3D1264751959&hash=1576f36340606845dc2b76c8b39b3baa9d685e9f)[/spoiler]
Here, you can set the event to activate certain parts only if the player has enough money.
I'll even throw you an example event.
<>Message: It costs 100 Gold to unlock this door. Shall I unlock it?
<>Show Choices: Yes/No
: [Yes] Handler
<>Branch if Money is 100 or more
<>Message: Very well. I shall unlock the door for you.
<>Change Money: 100 Remove
<>Switch Operation: [001:OpenDoor] ON
<>
: Else Handler
<>Message: You do not have enough money.
<>
: End
: [No] Handler
<>
: End
<>
Here,
Just copy the pictures
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1022.photobucket.com%2Falbums%2Faf348%2FAPGDMA%2Fdoorpay1.jpg&hash=29bb188bb53de6d870092d13db2d42ae914dddfe)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1022.photobucket.com%2Falbums%2Faf348%2FAPGDMA%2Fdoorpay2.jpg&hash=f5e0636ce4814aa55d941bb69699c3433e53c597)
Then just make a door that opens when "001:DOOR OPEN" is on.
Oops.... someone posted when I pressed "Save"....
I see! Thanks, guys.