RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
How can I create a proper money transaction system? [Resolved]

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 82
The game is a lie.
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? ???
« Last Edit: January 29, 2010, 08:44:24 AM by Crayon »

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

Spoiler for:

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.

Code: [Select]
<>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
<>

***
Rep:
Level 82
Weeeee!
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"....

**
Rep: +0/-0Level 82
The game is a lie.
I see! Thanks, guys.