Gaming system problem

Status
Not open for further replies.

alltheyuriz

The Question Asker
Veteran
Joined
Sep 18, 2020
Messages
148
Reaction score
77
First Language
English
Primarily Uses
RMMV
I used a video tutorial on how to make a gambling dice system, but i dont know how to make it to where they cant bet zero gold
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA
Moved to RPG Maker MV Support. Please only use "Tech Support" for problems opening the editor, retrieving files, etc.

Here's how I would do it:
Begin Loop
Message: "Enter your bet."
Number Input - save to Variable #17 (or whatever Var you want)
Conditional Branch: If Var 17 > 0
Break Loop
Else
Message: "You must bet more than Zero."
End Branch
End Loop

This will cause the "Enter bet" and number entry to run at least once, and if the player bets an appropriate amount it will break the loop immediately and continue running the rest of your minigame or whatever. If the player bets 0 it will tell them they cannot do that, then cycle back to the top of the loop and tell them to enter their bet again, replacing the 0 with whatever they enter, as many times as necessary until an appropriate number is given.
 

alltheyuriz

The Question Asker
Veteran
Joined
Sep 18, 2020
Messages
148
Reaction score
77
First Language
English
Primarily Uses
RMMV
Moved to RPG Maker MV Support. Please only use "Tech Support" for problems opening the editor, retrieving files, etc.

Here's how I would do it:
Begin Loop
Message: "Enter your bet."
Number Input - save to Variable #17 (or whatever Var you want)
Conditional Branch: If Var 17 > 0
Break Loop
Else
Message: "You must bet more than Zero."
End Branch
End Loop

This will cause the "Enter bet" and number entry to run at least once, and if the player bets an appropriate amount it will break the loop immediately and continue running the rest of your minigame or whatever. If the player bets 0 it will tell them they cannot do that, then cycle back to the top of the loop and tell them to enter their bet again, replacing the 0 with whatever they enter, as many times as necessary until an appropriate number is given.
Im sorry and thank you so much
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,472
Members
137,822
Latest member
madelbylz
Top