Switch Puzzle

For some reason my brain is not figuring this out. I made a switch puzzle where it requires weight to flip the switch, ergo either the player or a boulder. First part is a switch that opens a gate, if the player steps on it, gate opens, steps off gate closes. So you push the boulder on it, gate opens and stays, YAY! I got that to work. Now I am making one where there is two pressure switches. Now for some reason I am having trouble figuring it out. Have 1 event tracking player XY coordinates. Another event tracking boulder XY. What would be the easiest way to do this puzzle? Both switches must be down for the gate to open, player on switch and boulder on another. Thanks!
Use regions.  Paint a region on both switches (same region number).  Make your event that tracks their position check the region codes at their x/y location.  If both region codes are whatever value you paint them with, the conditions are met.
I haven't messed with regions too much, would this require the Yanfly plugin to do common events on regions?

EDIT: I got it now, maybe not the most efficient way but it works, thanks for the region tip!
It's certainly not easy to do even if it is an easy puzzle. What Shaz said is correct but there are multiple ways. For example, you can use variables and conditional branches.
It's certainly not easy to do even if it is an easy puzzle. What Shaz said is correct but there are multiple ways. For example, you can use variables and conditional branches.
That's how I did the single switch one but the two switch puzzle was getting convoluted. I showed it to my wife. She was unimpressed. "You push the boulder on the other one" I was like but the work I put into it!!
You do not need a plugin.

You need 3 variables.

Code:
Control Variables [001: X] = Player's Map XControl Variables [002: Y] = Player's Map YGet Location Info: [003: Region] = Region @ [001], [002]Conditional Branch: Variable [003: Region] = 1  Control Variables [001: X] = Boulder's Map X  Control Variables [002: Y] = Boulder's Map Y  Get Location Info: [003: Region] = Region @ [001], [002]  Conditional Branch: Variable [003: Region] = 1    Player and boulder are both on the correct tiles - open the door or whatever you want to do (likely turn on a switch)  Branch EndBranch End

Original thread: https://forums.rpgmakerweb.com/threads/switch-puzzle.48387/