floor switches activated by move objects

So I'm making this dungeon that's base on multiple puzzles.


One of the puzzles is base on moving a boulder onto a tileset piece that's a stand alone in a chamber. Objective is to move the boulder to that area, and if so, the west door will open.


Issue is, I'm unsure how to approach this. I would choose the if statement, but it's limited to what I can execute. I use the if statements on the boulder though for movement.
This is a common puzzle I love, specially famous in Zelda.


You do it using variables that track the events x and y.


then a conditional branch on the tile you want to move it to saying "IF boulder is here, you win and are badass, ELSE you suck and you lose"


EDIT: Oooo here ya go, a step by step.


https://rpgmaker.net/tutorials/339/
On the boulder event, after the move route to move the boulder away from the player, put the event's X and Y location into variables using the Control Variable command.  You can then use conditional branches to see if the variables match the tile coordinates where you want the boulder to be.


Another way (avoid hardcoding the required position) is to use a region to mark the destination tile.  Then after you have the X and Y position of the event, use a Get Location Info command to place the Region ID into a third variable, using the X and Y variables to determine the position to check.  Then your conditional branch will be to see if the region ID variable is the correct value.
This puzzle is what taught me how to use variables wayyy back in the RMXP days 😀
On the boulder event, after the move route to move the boulder away from the player, put the event's X and Y location into variables using the Control Variable command.  You can then use conditional branches to see if the variables match the tile coordinates where you want the boulder to be.


Another way (avoid hardcoding the required position) is to use a region to mark the destination tile.  Then after you have the X and Y position of the event, use a Get Location Info command to place the Region ID into a third variable, using the X and Y variables to determine the position to check.  Then your conditional branch will be to see if the region ID variable is the correct value.

Not really good at the x, y variable setup. Been a while since I played with this feature x.x
Variables are REALLY handy. This would be a good, easy way to get your hands dirty 😉
Variables are REALLY handy. This would be a good, easy way to get your hands dirty 😉

know any good tutorials for me to watch? or at least read? I prefer to read over watching
There is a Variables Guide which is a game you can play that teaches you how to use variables and what they can be used for. You can probably find it in the VX Ace Tutorials.
know any good tutorials for me to watch? or at least read? I prefer to read over watching

You can follow the link to the starting point in my signature, it contains a lot of links to tutorials (including a link to the variables guide Shaz mentioned)
I also posted a link to a step by step tutorial up there
This is a common puzzle I love, specially famous in Zelda.


You do it using variables that track the events x and y.


then a conditional branch on the tile you want to move it to saying "IF boulder is here, you win and are badass, ELSE you suck and you lose"


EDIT: Oooo here ya go, a step by step.


https://rpgmaker.net/tutorials/339/

Thank you for this tutorial. It was easy to understand and was able to create my boulder puzzle n.n


Thank you to the others for helping too!
No worries yo, Im glad I could assist 😀

Original thread: https://forums.rpgmakerweb.com/threads/floor-switches-activated-by-move-objects.64470/