Rock/Switch puzzle help.

How do you make the switch trigger when the rock gets pushed onto it? The event menu seems to always need the player to touch it and not the rock touching the switch.
have the rock check its own position when pushed by the player, and trigger something if it is on the position it needs to be.
This position can be determined by XY coordinates or by region ID, it should NOT be determined by another event unless you know exactly what you're doing (because you need to target that event remotely and indirectly)
So do i have to use Script to determine position?
nope, in variables you can set event X and Event Y, then simply have a nested conditional branch to check if those two match up with the place on the map you want.

upload_2019-1-11_15-47-7.png
You include his Eventcode directly after the the Rock push code, maybe a 1Frame Wait in between. You could also use Regions instead of Coordinates, but the 2nd seems easier for the start.

If you dont know the Code for Pushing Rock:
Rock - Turn away from Player
Rock - 1Step forward
nope, in variables you can set event X and Event Y, then simply have a nested conditional branch to check if those two match up with the place on the map you want.

View attachment 106885
It works. Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/rock-switch-puzzle-help.104326/