Need help with creating a boulder-switch puzzle with more than one boulder and switch

Hello! So I need help with this puzzle that I just conceptualized.

It's a relatively simple puzzle on paper, wherein you roll around boulders and place them on top of switches to open a passage. I've looked up several tutorials on how to make these kinds of puzzles work and I thought I got it, but several trials and errors later and the puzzle wouldn't even display the text box that should appear once a boulder is on one of the switches. I tried doing different parallel events, reorganizing the sequence of events in a single parallel event, but I might've gotten something wrong or missed a detail.

So I need help with how to do it because I can see how this might be too complex to execute seeing that it involves more than one boulder and more than one switch. Would also be great if it's something that doesn't need a plugin but feel free to suggest a plugin if that's my only hope. If it does look tedious to do, then maybe I'll settle with a simpler puzzle to event.

Here are some screenshots of what the puzzle look like, and how I attempted the events at first.
Spoiler: Puzzle
1682825097367.png
Spoiler: Puzzle Event
1682825312631.png
Spoiler: Boulder Event
1682825367608.png
This might make your life easier
Also, your second image, the Puzzle Switch, is a mess. You spend 10 lines declaring the same two variables with new values over and over. Use the above Galv plugin and don't waste your control variables on the event locations.
This might make your life easier
Also, your second image, the Puzzle Switch, is a mess. You spend 10 lines declaring the same two variables with new values over and over. Use the above Galv plugin and don't waste your control variables on the event locations.
Thank you so much for the plugin suggestion! Will definitely test it out.

And yeah I figured that out. Though the alternative is creating a Variable for every single boulder which would be tedious to apply. So yeah, this plugin might be a lifesaver.
Though the alternative is creating a Variable for every single boulder which would be tedious to apply.
It would be horribly inefficient but at least it would work. All you were doing is overwriting the same two variables five times so only the last assignments stand. While you don't necessarily need that plugin to solve this it will make things a lot easier.

I can write you some scripts for this. Does the player standing on one of the buttons open the door, and if so is it temporary or permanent?
If you have problems with that plugin or want to go the eventing route for other reasons, then it is better to make the position checks NOT in a parallel event but in the boulder event itself.

after it has moved, check where its position is and react to it.

additionally, you can make the position check instead of using coordinates use get location info to check for region-ID - multiple tiles can have the same region ID, no need for dozens of coordinate checks.

and for multiple boulders, count a variable up if the boulder is in position, using a self-switch to mark if it was in position and needs to count the variable down id moved away from the position
There is also script call to check event position without using variables: $gameMap.event(id).pos(x,y);
So, if any boulder on any switch is okay, you can add a conditional branch to boulder event and use this script in a conditional branch: $gameMap.event(this._eventId).pos(x1,y1)||$gameMap.event(this._eventId).pos(x2,y2);
Instead of x1, y1 you put coordinates of the first switch, and coordinates of the second switch for x2, y2.
It would be horribly inefficient but at least it would work. All you were doing is overwriting the same two variables five times so only the last assignments stand. While you don't necessarily need that plugin to solve this it will make things a lot easier.

I can write you some scripts for this. Does the player standing on one of the buttons open the door, and if so is it temporary or permanent?
I appreciate it.

Also, the puzzle is only one time. And it doesn't involve the player sitting on it. The goal is to simply roll the boulders to the switches and if both are open, it opens the passage.
There is also script call to check event position without using variables: $gameMap.event(id).pos(x,y);
So, if any boulder on any switch is okay, you can add a conditional branch to boulder event and use this script in a conditional branch: $gameMap.event(this._eventId).pos(x1,y1)||$gameMap.event(this._eventId).pos(x2,y2);
Instead of x1, y1 you put coordinates of the first switch, and coordinates of the second switch for x2, y2.
Neat. I might try doing that as well. Do I put the suggested conditional branches on each boulder or each switch?
In this Thread someone had a similiar Problem.

My suggestion was this:

Here is one way to build this. With Region Id like @Shaz mentioned.
Also i included a check so a sound effect is only played when the rock is moving, not when it is pushed against a Wall.
Everytime you Push a Rock onto the Correct RegionID, a Variable will count up +1, if a previous correct placed rock
enters the wrong Region, it will count down -1.
You can just copy paste the Rock and make as many as you need, even 100+.
index.php
index.php
Okay! So I managed to finish the actual puzzle using @Nivalis's suggestion and WOW it worked!

I just applied the same events to every single boulder and made a parallel event that removes the blockade after all switches are toggled. It looked like this.

Spoiler: Puzzle Events
1682900543434.png
1682900572709.png
1682900634134.png
In this Thread someone had a similiar Problem.

My suggestion was this:

Here is one way to build this. With Region Id like @Shaz mentioned.
Also i included a check so a sound effect is only played when the rock is moving, not when it is pushed against a Wall.
Everytime you Push a Rock onto the Correct RegionID, a Variable will count up +1, if a previous correct placed rock
enters the wrong Region, it will count down -1.
You can just copy paste the Rock and make as many as you need, even 100+.
index.php
index.php
Great tip, though I already finished with the one above. Though yeah, I still need to know how to stop it from stepping and making noise when it can't move.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-creating-a-boulder-switch-puzzle-with-more-than-one-boulder-and-switch.157081/