rock and switch problem

I have been trying to get a rock event to activate a switch event, but I can't seem to get it to work. I've been troubleshooting for a while. I can get the hero to activate the switch but not the rock event. I was hoping a fresh pair of eyes can help find what I'm over looking.
codingexample1.png

Above is what I used to tell the locations of the rocks and switches.

codingexample2.png

Here is the code I put for the switch.

codingexample3.png

Here is what the switch should look like when the conditions are met. Nothing happens though.
I see a few problems with this setup.

1 - We don't know what you're trying to accomplish. You just say "rock and switch" like we know what that's supposed to be doing in your game, but we don't. We might guess that you're pushing a rock to get it onto a switch, but you don't explain yourself and you don't show the rock, so we have no way to know.

2 - It turns on a self switch at the bottom, presumably to that second page, presumably blank (I have a lot of presumptions because you don't show the whole thing). In that case, it's only running one time when you load the map and will never do anything else. That means the values of those variables will never change.

3 - I don't see any reason for you to have that parallel event at all. What is its purpose? If you are, in fact, trying to push the rock on top of the switch: why wouldn't you simply check the current coordinates of the rock after each time it gets moved?

4 - Why does your switch have a parallel event (or any event code at all)?

5 - You specify your actual problem is you can't get the player to activate the rock event, but that's the one event you don't supply any screenshots of.
I'm sorry for not including enough information. Thank you for answering. I am trying to get a door to open when the hero stands on one switch and the rock is on the other switch. That is why I put it on the parallel process. However I couldn't get the switch to be pushed down if the rock was pushed on it. So I got rid of the door part for now, and I'm just trying to get the rock to cause the switch to go down. I hope that makes sense.
example7.png

Here is the map.

example4.png

Here is the rock page.

example5.png

This switch works when the hero stands on it.
example6.png

It goes to this page.
Okay. You might want to take a bit of time to re-read the instructions and/or look up some tutorials about the different event types. Nothing that you're doing here should be parallel - I still don't get why your switch is set that way instead of Player Touch.

However I couldn't get the switch to be pushed down if the rock was pushed on it.
Then you need a way to make the switch go to a page where it looks pushed down.

For example:
1713714958694.png

1713714973644.png


Then, in the Rock event, after the movement you check its coordinates to see if they're the same as your first button - if yes, turn on switch Button 1 to change that event page.

Then check to see if the Rock coordinates are the same as the second button - if yes, turn on switch Button 2 to change that event's page.

Your button's first event page would look like:
1713715138806.png


And the second button is the same, except checking for Button 1 to be ON.
Okay I will try that. Thanks for your help.
Oh, and of course switch the appropriate button switch on at the bottom of the first page that I showed, to also go to the page that shows that button being pushed down.

Original thread: https://forums.rpgmakerweb.com/threads/rock-and-switch-problem.167946/