Main Menu

How can I create a proper money transaction system? [Resolved]

Started by Crayon, January 29, 2010, 05:11:34 AM

0 Members and 1 Guest are viewing this topic.

Crayon

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? ???

Drakusatheon

Rather easily with a conditional branch. It's on Page 3 of the eventing menu if you use 2k3 (not sure on 2k  :()

[spoiler][/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
<>

Blue

Here,

Just copy the pictures






Then just make a door that opens when "001:DOOR OPEN" is on.

Oops.... someone posted when I pressed "Save"....

Crayon