switch not working after leaving room?

I have a door (in a medical area) that is supposed to unlock after a cutscene plays in a cafeteria and for some reason the door is still locked. The switch is definitely working because it also makes the cafeteria tileset change (It's hard to explain but it works for what I was trying to do for that scene) but the door just stays locked. What do I do? I'm freaking out and I'm scared. I have a panic disorder. How do I fix this?

The door being open is essential to the plot because there's a quest NPC there. I need this to work...

I tried to make a solution by creating a lab key, but that failed too. I can't breathe please tell me what's happening
You can start by posting your event for people to analyze. Hard to do anything without that info.
What do I do? I'm freaking out and I'm scared. I have a panic disorder. How do I fix this?
Post event page. It's probably something small you overlooked. Nothing to freak out over. Now if your project got wiped with no backup, that's another story...
You can start by posting your event for people to analyze. Hard to do anything without that info.
I don't know how to do that, I'm sorry.

Post event page. It's probably something small you overlooked. Nothing to freak out over. Now if your project got wiped with no backup, that's another story...
I'm sorry I don't know how to post that...
If you're using Windows use Snipping Tool to grab a screenshot of the event page. Then you can just copy and paste it directly in the post box here.
If you're using Windows use Snipping Tool to grab a screenshot of the event page. Then you can just copy and paste it directly in the post box here.
Where do I find snipping tool? I'm sorry, I genuinely don't know
Click the Start Menu and type in Snipping Tool
Where do I find snipping tool? I'm sorry, I genuinely don't know
AquaEcho will guide you here, but in the future, remember that Google will give you answers to simple questions rather easily.
AquaEcho will guide you here, but in the future, remember that Google will give you answers t
Click the Start Menu and type in Snipping Tool
Thank you, I'm sorry... I did what you said and attached the pictures above. I even tried F9 and checked if the switches were enabled. They were on...

Can you see what could be wrong?
Click the Start Menu and type in Snipping Tool
What are the conditions on the second and third page of the door? The door will be on whatever page comes last that meets its conditions.
What are the conditions on the second and third page of the door? The door will be on whatever page comes last that meets its conditions.
Nothing special... just stuff about how you can't enter yet. I don't know events and coding very well. I don't know how to make things change over time so I did it this way. But it's supposed to unlock after an ice cream scene. I even tried giving myself a key after the scene. It still doesn't work.
I would move your first page so it's after the next two.
I would move your first page so it's after the next two.
Okay I'll try that... I don't really know why it looks like that. I definitely didn't make that the first page originally.

Still didn't work... oh god what do I do?

Edit again: Okay... I tried doing it with the key again, and somehow with your suggestion it worked. I don't know why the switch still doesn't but I'll use the key way for now. Thank you...
What event page is the door on if not the page that has the switch condition?
Okay I'll try that... I don't really know why it looks like that. I definitely didn't make that the first page originally.

Still didn't work... oh god what do I do?

Edit again: Okay... I tried doing it with the key again, and somehow with your suggestion it worked. I don't know why the switch still doesn't but I'll use the key way for now. Thank you...
Did you make sure the switch was activated?
Did you make sure the switch was activated?
Yes, I did... but it's okay. At least the key works now somehow. I'll take what I can get.
Yes, I did... but it's okay. At least the key works now somehow. I'll take what I can get.
Double check it anyway. I put together a very simple event to do something similar, and as long as I ensure the switch is activated and the event pages are in the right order, it works without the need of a key item.

1748841747638.png

1748841783386.png
Double check it anyway. I put together a very simple event to do something similar, and as long as I ensure the switch is activated and the event pages are in the right order, it works without the need of a key item.

View attachment 342034
View attachment 342035
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.
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.
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.
@DeterminedKid1000

Since there was a lot of "Panic" going on in this topic, I think it is best if I point out what the original problem was and how I always remember that when eventing:

Page order is extremely important for events
and
Highest page number has highest priority

basically only one page of an event can be active, and if several pages have all their conditiones fulfilled or cleared, then the page with the highest number will be active.


In your original case, the second page had no conditions - which means that it will always take priority over the first page, no matter what.
That is why your switch didn't work correctly

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