Multiple locked doors

I have followed the whole "3 event page" thing to make a door locked, open with key, and stay open. It works, but a little too well.

I found that the other locked doors I make are contantly on the "On" position, meaning that the other locked doors are no longer visible and, therefore, cannot be interacted with.

I have tried turning the Switch Event off after you enter the first locked door and then back on again when you go back through it, but when you go through it a second time after unlocking the other locked door, it will then remain in the "Off" position forever locked.

I'm pretty sure I'm missing something, but I'm not sure what it is. Or can you just not have multiple locked doors in your game? That would suck...
Are you using the same switch as the condition for every door? That would explain the behaviour you're experiencing. If this is the case, use self switch A instead of a global game switch; every event has its own unique self switches, so they shouldn't interfere with any other door events.
Agree with Trihan. Anything than can be controlled by it's own event, without adding extra Switches and/or Variables, should be.

Try using self-switches. And using them would even enable you to copy that same event to each subsequent door using the same code(as long as they use the same key(if not, you just change one piece of the event code for each door)).
...You mind explaining how that works to me? I'm new at using this program and not sure how everything works.

Here is my script:

Event Page 1: Player Touch is on.

@>Text: -, -, Normal, Bottom

:       :This door is locked.

:       :A key is needed to open it.

@>

Event Page 2: Item "Key" Exsists

@>Play SE: "Open 1", 80, 100

@>Control Switches: [0001😮pen Locked Door] = On

@>Change Items: [Key] -1

Event Page 3: Control Switch 0001 On

@>Play SE: "Move", 80, 100

@>Transfer Player: [XXXX]

I really want to make this game, but I don't get switches...
You really could use less pages, but for the sake of simplicity...

Where you have "Control Switch: 0001 = on" on the second page...

Change it to "Control Self Switch: A = on".

And set the Event Page 3 Condition to "If Self Switch: A = on".

What this does is makes the event change a Self Switch.

Self Switches are only recognized within their own event, hence the name "Self" Switch. It's useful because it prevents you from using too many of your game's Switches. It also prevents you from having to remember a bunch of switches for every. single. event. that you've made. Very handy indeed!

Do that for all the doors and you should have it.

I've written a tutorial on switches and variables. I'll send you a link in a PM.
Okay! Thanks! The doors work now!

And thanks for the link. I'll keep in mind.
Here's a better way to do them if you're interested:

page1.png


page2.png

Original thread: https://forums.rpgmakerweb.com/threads/multiple-locked-doors.39085/