Puzzle mechanic advice.

I'm working on a puzzle mechanic for a maze I'm wanting to put into my game.
Puzzle Mechanic Layout.png

The Idea is to have Lever 1 and 2 work alternatively to open and close doors 1 and 2 with a slight twist. When you interact with Lever 1 to turn it on, it turns off Lever 2, opens Door 1 while closing door 2. The twist, once you turn Lever 1 on, you can't interact with it anymore unless you turn Lever 2 on, which in turn, closes Door 1 and opens Door 2 while also turning Lever 1 off, allowing you to interact with it again to repeat the process. I can get it to work for the most part, but I can't get my character to interact with Lever 2 at all

This is the pictures for what I have for Lever 1:
Switch A PG1.png

Switch A PG2.png


And what I have for Lever 2:
Switch B PG1.png

Switch B PG2.png


It almost feels like I have the setup for Lever 2 reversed, but I have tried that, and it still doesn't work. Unless I'm missing something.
I don't think you need an IF statement for this case.

Switch 1 does the following things:
- it turns Switch 1 On
- it Opens Door A
- it turns Switch 2 Off
- it closes Door B
- turns on Self Switch A in Event Page 1
- (you'll need a script command for that one) it turns off the Self Switch A from Switch 2.

Your Switch 2 does the reverse of Switch 1:
- it turns Switch 2 On
- it Opens Door B
- it turns Switch 1 Off
- it closes Door A
- turns on Self Switch A in Event Page 1
- (you'll need a script command for that one) it turns off the Self Switch A from Switch 1.
Ok, I'll give it a try when I get back into it. Thanks for the help.
Update: So, I've been working on this for the last few days and I'm still at a loss for how to set up the event pages properly. I removed the conditional branch and just went with control switches and my character still cannot interact with the second lever. When I tried reversing the event pages for lever 2, somehow, both levers vanished when testing.
here is something that might work for you, I didn't include the SelfSwitches in this one but it would work the same way regardless

As mentioned: Switch 1 is not interactable after turning it on but Switch 2 will be able to interact with Switch 1 IF it already is turned on, thus turning Switch 1 off.

I used two different images from Chests but the important thing is how it works in terms of unlocking them. You simply create the second page and have the interactable events in the second page where we have the Switch 1 requirement to be active.
Ok, thanks. There is something I saw and i have seen it in other puzzle mechanics and have been curious about. I have asked someone else about it, but got no direct answer. Do you have to set movement routes for things like switches and if so, how do you know what directions to give for it?
Well as for Animations for the movement it looks better while you need to know if the other switch is on screen or not (wouldn't be necessary if it's not on screen and you run an animation for it)
1744120548546.png

You can compare whatever you want to turn around with an actor's position on the sheet.
the Top is facing Down
as we go further down the other sprites it turns Left, then Right and then Up.
Movement Routes are really nice if you perhaps want to move the Switch around from one Location to another as well!
Ok, after some trial and error with what you sent me, I finally got it to work, but I do have one question: Why does switch 2 not respond properly when you initially interact with the mechanic?
Ok, after some trial and error with what you sent me, I finally got it to work, but I do have one question: Why does switch 2 not respond properly when you initially interact with the mechanic?
that would depend on the state Switch 2 is supposed to be in when you load the Map.
I went for it that Switch 2 won't interact with Switch 1, IF Switch 1 is not active at all.

If Switch 2 were already active when you enter the room then you'd activate the switch upon entering the room or some other type of event.

Original thread: https://forums.rpgmakerweb.com/threads/puzzle-mechanic-advice.176655/