switch not working after leaving room?

Okay... I tried to follow. I think I see the problem. Before you told me to rearrange the event pages I made another switch called Open Lab Door, and forgot to switch it back to After Ice-cream Scene. So the wrong switch activated? Or didn't activate? Sorry... my head hurts from crying. It's hard to think. Thanks for helping me.
Just a general note, but the way the program reads stuff is that the most recent page is read first, if the conditions for it are met. So you want to put your switch based pages later on, rather than the start.

Since your conditions on page 2 or 3 were met, while also the condition on page 1, the program was reading pages 2/3 as the are more recent pages.
small tip to you if you want to show issue.

here is a small debug tip to see if it is triggered.

under switch = ON, use a scriptcall:

console.log("switch x: ", $gameSwitches.value(n))

change x to your switch (optional), replace N with the ID number.
this way, you can see if its ON (true) as it should be or OFF (false)
if it fails.

from there, you can see what you miss (action trigger, item, whatever
supposed to happen.
No problem. Just do yourself a favor and try to relax, okay? Panicking too much will make you prone to missing vital info. Remember, we're here to try and help, so don't let pressure get to you.
Thank you… I really appreciate the understanding. I’ll try to keep calmer. Sorry I didn’t see this until now, I fell asleep after my last reply. Thanks again for helping me.

small tip to you if you want to show issue.

here is a small debug tip to see if it is triggered.

under switch = ON, use a scriptcall:

console.log("switch x: ", $gameSwitches.value(n))

change x to your switch (optional), replace N with the ID number.
this way, you can see if its ON (true) as it should be or OFF (false)
if it fails.

from there, you can see what you miss (action trigger, item, whatever
supposed to happen.
I’m sorry I don’t really understand any of that, but I’ll take a picture with my phone just in case I figure it out later and this helps in the future. Thank you.
ShadowDragon's tip is just the script version of pressing F9 to check the switch and manually turn it on or off.
ShadowDragon's tip is just the script version of pressing F9 to check the switch and manually turn it on or off.
I mean more a scriptcall below the switch or set in the console tab.
but F9 can definitely help too to see if its ON or OFF as well.

kind of forgot that bit 🙂

but I use console.log scriptcall to debug.

Original thread: https://forums.rpgmakerweb.com/threads/switch-not-working-after-leaving-room.178078/