RPG MZ - Puzzle Switch Game (Vermilon Gym)

Hello !

I'm making a good steampunk dungeon.
The last room (before beating boss) is a enigma puzzle switch.

Picture :
dungeon.jpg




So, I want to make a enigma puzzle switch like POKÉMON RED/BLUE, from Vermilion Gym, like this :
(in fact, the player must find the right switches to activate, you know)
pkmn.jpg




How making this enigma with RPG MAKER MZ ?
Thank you from France ♥
From what I gather, the first switch gets randomly placed in one of a few designated trash cans, and then the second switch gets randomly placed in one of a second set of trashcans.

Have an autorun event that rolls a random variable 0 - X (X Being the number of switches that can be "switch 1")and end it with either erase event, if the player comes back to this map or a self switch, if you want the location to be permanent. Put a conditional branch into each of the switches checking for that variable.

If "SwitchRNG = 0" in one of them, If "SwitchRNG = 1" in another and so on.
Turn SWITCH "Switch 1 found" ON
roll a random variable 0 - X (X Being the number of switches that can be "switch 2")
else
Do nothing, or "This is the wrong switch"
Put a second page on all the switches with the condition switch "Switch 1 found".

Now we repeat the same process.

If "SwitchRNG = 0" in one of them, If "SwitchRNG = 1" in another and so on.
Turn SWITCH "Switch 2 found" ON
WHatever is supposed to happen when player finds switch 2.
else
Do nothing, or "This is the wrong switch"

Now if you want to copy the pokemon trashcans 100%, you'll have to be a little more specific in eventing which "trashcans" can be 1 or 2. The method I described basically makes all the "trashcans" a possible success (But only one of them at a time, of course)

The player will have to find 2 switches which will be randomly chosen among the "trashcans", which is essentially the same thing gameplay wise. The only "downside" being that it's statistically possible for switch 1 and 2 to be in the same spot.

As I said, you can get more elaborate with it, but my brain isn't braining enough right now to write an even longer tutorial on how to basic rpg maker functionality. Hope this'll work for you, or at least nudge you in the right direction.
OK, thanks, I'll take care of it and get back to you ! 🙂
If I understand correctly, the conditionnal branch for the event switch is :
event.jpg
Looks about right, although I don't speak french. There must also be a second page with the condition "Switch 1 found".
Hello !
Thank you for your help, it works ! 🙂


STEP 1, AUTORUN EVENT :
1760789033840.png


STEP 2, THE SWITCHES (page 1 and page 2) :
1760789073357.png

1760789115083.png

Original thread: https://forums.rpgmakerweb.com/threads/rpg-mz-puzzle-switch-game-vermilon-gym.180588/