This is assuming something like this is actually possible lol
I call this little minigame Lucky Barrel. The idea is that the player pays Casino Tokens (which are stored in a variable) to have a crack at this minigame, to potentially win a whole bunch of Casino Tokens! As with any barrel in my game, you can smash barrels by inspecting them, revealing possible prizes inside. In this particular minigame, the player will be given 3 chances at smashing the barrels inside this room. One of the barrels pays back out the bet that the player paid to play. One of the barrels pays out double what they paid to play. And finally one last barrel pays out a whopping ten times what they paid to play! The other six barrels contain nothing. I would also like for the minigame to end when the player breaks a barrel with a prize inside, regardless of which one it is. So if you break the barrel to get back your bet on your first try, the game ends there, you don't get another chance to break any more barrels until you play again.
So... How do I do this...?
Specifically, how do I randomize the contents of the barrels each time the player speaks with the bunny girl to begin the minigame? I think I could handle doing the rest, but I haven't the faintest idea how to randomize which barrels contain which rewards, and which contain nothing.
For the record, this is what a typical empty barrel event looks like in my game, currently.
Page 2 is just the smashed barrel icon with nothing on the event page, and page 3 is a blank event.
If anyone could help me out, I'd really appreciate it!
I call this little minigame Lucky Barrel. The idea is that the player pays Casino Tokens (which are stored in a variable) to have a crack at this minigame, to potentially win a whole bunch of Casino Tokens! As with any barrel in my game, you can smash barrels by inspecting them, revealing possible prizes inside. In this particular minigame, the player will be given 3 chances at smashing the barrels inside this room. One of the barrels pays back out the bet that the player paid to play. One of the barrels pays out double what they paid to play. And finally one last barrel pays out a whopping ten times what they paid to play! The other six barrels contain nothing. I would also like for the minigame to end when the player breaks a barrel with a prize inside, regardless of which one it is. So if you break the barrel to get back your bet on your first try, the game ends there, you don't get another chance to break any more barrels until you play again.
So... How do I do this...?
Specifically, how do I randomize the contents of the barrels each time the player speaks with the bunny girl to begin the minigame? I think I could handle doing the rest, but I haven't the faintest idea how to randomize which barrels contain which rewards, and which contain nothing.
For the record, this is what a typical empty barrel event looks like in my game, currently.
Page 2 is just the smashed barrel icon with nothing on the event page, and page 3 is a blank event.
If anyone could help me out, I'd really appreciate it!