Conditional branch - proceed with payment

Hey there,

I am experimenting with building conversations and was wondering whether it's possible to come up with a way to "buy" information.

Example:
Person A (the actor) is seeking out information from Person B.
I set "show choices":
- Ask politely
- Offer 50 $ (which will result in the subtraction of 50 $ from Person A's money via "change gold")

Now, even though Person A does not have 50 $, I can select the second option.

Is there a way to avoid this? So that for instance, if I select the second choice and I only have 40 $, I receive some kind of alternative message like "Come back when you have the money".

Happy to hear your opinion about this 🙂
set vriable = party gold
conditional branch before the choice
If party gold variable > 50 show both choices
else display only one choice.

There are plugins to hide/show choices depending on variables and switches but this is the non plugin way.
Literally use the Conditional Branch command on page 3.
There are plugins to hide/show choices depending on variables and switches but this is the non plugin way.
Be aware we are in the RM2K section, Plugins don't exist for this software.

Devs usually do something like this:

Code:
Show Choices
- Ask politely
  ...
- Bribe
  - Condition if Money > 50
    Story continues
  - Else
    Show Message "You don't have enough money"
    Quit Event Processing
Here is a simple example:
Code:
◆Show Choices:Any News?, Here 50G, tell me the Secret Info you mentioned earlier. (Window, Right, #1, -)
:When Any News?
  ◆
:When Here 50G, tell me the Secret Info you mentioned earlier.
  ◆Control Variables:#0012 var12 = Gold
  ◆If:var12 ≥ 50
    ◆Change Gold:- 50
    ◆Text:None, Window, Bottom
    :    :Here is the Info
    ◆
  :Else
    ◆Text:None, Window, Bottom
    :    :You do not have enough Gold.
    ◆
  :End
  ◆
:When Cancel
  ◆
:End

But it would need further Code, else you could pay him 50Gold again and again.
Maybe Turning a Self Switch on after the Gold is substracted and than use that self switch as page condition for a second Eventpage.

EDIT:
Oh LOL there is a Command for that in the Branch! @mlogan i totally overlooked that. Thank you.
But it's Page 4 atleast in MV. And i thought about MV, just noticed this is in rm2k3.
1660149476876.png


edit: I forgot to put in a command to remove the 50 gold. Also, the switch is there to go to a second page where this dialog is no longer possible.
Thanks everyone! I'll test it and let you know

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-proceed-with-payment.150296/