- 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
Im sorry and thank you so muchMoved 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.
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.