Stealth/Loud choice

You are supposed to have a choice of either entering the front gate and fighting these guards or cutting through side fence.

If you beat up the guards the thugs inside are supposed to initiate battle but if you didn't, you just do a "sneak attack" and they disappear.

I tried doing it with event pages and the first being autorun, checking if the "thug gate" switch is on. If it is, it turns on self-switch A (battle) but if it's not it turns on s.switch B (sneak attack).
Unfortunately as a result if you enter the side fence but don't cut it and go back to the gate or just beat up the gate guys from inisde, they are still in the sneak mode.

No switch page is autorun, battle page is event touch aprroach and sneak page is player touch custom route

How to make it change the page once that condition is met? I can't set the guys going around to autorun because the battle/sneak attack would just activate when you step in, but if it's touch then you would have to approach a guard before they battle anyways
If you make the battle with the gate guards turn on your 'thug gate' switch, then what does it matter if the player fights them after first entering from the side? It should still be on. Just don't make any other switch override what event page is chosen when you enter the house and check for battle vs. sneak attack.
If you make the battle with the gate guards turn on your 'thug gate' switch, then what does it matter if the player fights them after first entering from the side? It should still be on. Just don't make any other switch override what event page is chosen when you enter the house and check for battle vs. sneak attack.
The switch is in fact still on, that's not the issue. The issue is if you enter from the other side first then kill them, the others are already set to the stealth version and not the battle page
But just put the pages for the guys inside the house like this:

Page 1 (sneak attack)
Page 2 (battle) // page 2 has a condition switch that you've fought the guys at the gate

Then you don't need to have going through the side activate any switches or anything?
But just put the pages for the guys inside the house like this:

Page 1 (sneak attack)
Page 2 (battle) // page 2 has a condition switch that you've fought the guys at the gate

Then you don't need to have going through the side activate any switches or anything?
Holy shish...
I have just overcomplicated it to the point I couldn't fix it when I could just do this all along.
I should probably get more sleep.
Thank you so much <3

Original thread: https://forums.rpgmakerweb.com/threads/stealth-loud-choice.168388/