I need to have like ideally 6 different types of gambling minigames for the casino chapter bosses. as my game uses a casino with gambling as the boss fights for chapter 2 instead and my first attempt was making higher or lower but even that makes like 1000 variables in one event
so first off I'm wondering if there's a way to make it much more...simple, instead of having to like waste an entire day just to make one session. and then ideas for 5 other minigames. I think one of them will just be a guess the number thing, but then i have the same variables situation as higher nad lower, where it has to generate randomly and i need like 10 different conditional branches for each number
How to make gambling features such as minigames
RPG Maker MV SupportThere is a plugin for Blackjack called GRZ_Blackjack, where you can actually play and has visuals. I did variables for slots and roulette in my game I am working on. I'm trying to figure out a way to do the poker, like blackjack
You can streamline a higher/lower event like that by using \v[0] to reference the variables in the message box, and checking if one variable is higher than another variable instead of static numbers. You should only really need two variables and a switch for the whole thing.
Like this:
Like this:
Oh right, yeah that'll make it much easier thanks
Also...just double check all of your logic.
Your screenshot shows a lot of empty Else branches on Conditional Branches, which don't just need to exist.
And for portions of your game where you're doing the exact same thing, that's what making a Label and using the Jump to Label commands are for (or, depending on the structure of your game, encasing it in a Loop).
Aside from not needing a conditional branch to print every single possible value, what you showed could be made more efficiently.
(I also don't see anything like what you were talking about "making 1000 variables" - you used one variable in both screenshots)
Your screenshot shows a lot of empty Else branches on Conditional Branches, which don't just need to exist.
And for portions of your game where you're doing the exact same thing, that's what making a Label and using the Jump to Label commands are for (or, depending on the structure of your game, encasing it in a Loop).
Aside from not needing a conditional branch to print every single possible value, what you showed could be made more efficiently.
(I also don't see anything like what you were talking about "making 1000 variables" - you used one variable in both screenshots)
Actually, it's not difficult if you think about checking whether the number chosen by the player is different from the casino's number. Here, I’ll give you an example considering that the player must guess the result of the roll of a classic six-sided die.
P.S. Some time ago, I created mechanics for games like rock-paper-scissors and odd-even. If you're interested, I can share the code with you
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-gambling-features-such-as-minigames.172220/