Fettglasur

Warper
Member
Joined
Jul 26, 2022
Messages
4
Reaction score
1
First Language
German
Primarily Uses
RM2k
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 :)
 

BK-tdm

Manga Maker
Veteran
Joined
Jun 21, 2018
Messages
415
Reaction score
1,270
First Language
English
Primarily Uses
RMMV
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.
 
  • Like
Reactions: Bex

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,700
Reaction score
9,252
First Language
English
Primarily Uses
RMMV
Literally use the Conditional Branch command on page 3.
 
  • Like
Reactions: Bex

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
760
Reaction score
727
First Language
german
Primarily Uses
RMMZ
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
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,762
Reaction score
609
First Language
German
Primarily Uses
RMMV
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.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,700
Reaction score
9,252
First Language
English
Primarily Uses
RMMV
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.
 
Last edited:

Fettglasur

Warper
Member
Joined
Jul 26, 2022
Messages
4
Reaction score
1
First Language
German
Primarily Uses
RM2k
Thanks everyone! I'll test it and let you know
 

Latest Threads

Latest Profile Posts

Sometimes I wonder why I still try and recruit others to help with my games. It never works.
ScreenShot_10_3_2022_4_27_17.png
welp, thanks to Luna MV, I was able to add the Balloon as a window... thus allowing me to edit the font color and outline... so now it looks like comic bubbles above characters. I have NO idea why I couldn't get this to work through more conventional means, but here we are.
CUTE CUTE CUTE.gif
I cannot cease doing cute art
War and Wonder is a 100% choice-based open-world visual novel.
1664821313732.png
1664821466359.png
1664821547746.png
Going live soon on Twitch, and will continue Fortunastreet's game "Verloren". For those who are curious, you are welcome to join ;)

-> Franz' Twitch channel

Forum statistics

Threads
125,749
Messages
1,173,225
Members
164,911
Latest member
KyzerKiba
Top