Adding an arcade type location

Hello, I have a location that is an arcade in the story and I wanted to make it more interactable.

What I'm wanting to do, but not sure how to go about it exactly, is to have the player interact with machines and have it be random if they win or not. No actual gameplay involved, just interacting with the machine. So, it's a random chance if the character is successful and will make a comment about if they win or lose.

I have tokens set up to be used at each machine and a way to exchange money for tokens as well. You go to a token machine and pay 10 money for each token, then the machines are playable as long as you have one token. I'm not sure how to make the results random though.

Another feature I want to use but am not sure how to make is trading in tickets for certain items. If you have 10 tickets, you can trade it in for one prize, 20 for another, etc. Ideally, everything would be on a shop list like a normal shop, but if that's not possible, I'm happy to hear suggestions.

Thank you!
Randomness can be done by control variable -> set -> random (from x to y).
For the prizes, you could simply event that, like player can choose the price, then checking if he had the tickets, and if yes, then someone or a machine gives him the price. Everything can be done with conditions and variables in short 🙂
It sounds like what you want to do can be done with pretty simple events.

Have you done any tutorials showing how to use Variables, Switches, Self-Switches, Conditional Branches, Change items, etc.? If not, that is a common recommendation to learn the basics of the engine.

You can also experiment and post your screenshots of what you tried that didn't work.

The random number part is very simple as @fizzly mentioned. In the Event command for Control Variable, you can set a Variable to a number between two numbers. You can easily test that by setting the variable and then showing the variable value in a Show Text command in your event using \V[#] where the # is the number of your random variable. Each time you playtest you should see the value of the variable change.

For the purchase tickets, that is a simple conditional branch to check to see if the player has enough money or whatever you are using for currency. If so, then you use the Change options in the Event commands. Change Gold or Change Items to increase or decrease whatever is appropriate.

Same thing with the redeeming tickets for prizes. You use a Conditional Branch to check to see if the player has enough tickets. You can use the Show Choices command to give the player options to select prizes, and the Change commands to decrease tickets and increase prizes.

If this doesn't make any sense, then you probably need to watch and recreate some basic tutorials. There are quite a few series of MZ tutorials that walk you through the basics and give a good foundation.

If you give this a try and it doesn't work, you can always seek additional help.

Good luck!

Original thread: https://forums.rpgmakerweb.com/threads/adding-an-arcade-type-location.157227/