How to make npc open/pass doors?

Hello mates,

Im sorry if this is a dumb question, i'v already read other topics, but there are no direct solutions.

How to make NPC(event) to open and pass through doors?
Tried to make it with switch, but mb i don't understand how it works.
Screens:
the most important part of any cutscene is to know that there needs to be ONE controlling event for everything, all other events should be placeholders empty of commands.
NEVER use switches to chain event commands over several different events.

so basically you need one event that first sends the move commands to the event pretending to be the NPC to have it move to the event pretending to be the door, then that same event needs to give the commands to the door event making it look as if it opens (basically turning in the correct sequence), then give move commands (and a through command) to the NPC and then again give commands to the door closing it.

no switches needed at all.
What Andar said.
I've run an entire custom battle system off of one main event that triggers all the others and it flowed smooth as ice. All you really need to do is condense all of your movement routes and whatnot into whatever event triggers the NPC to walk away. If he walks away as soon as the player clicks on him, put the entire sequence of movement routes for both the NPC and the door into the NPC's event page. If he only walks away when the player selects a certain choice during dialogue, then place the entire sequence of movement routes into the conditional branch for that choice option.
If it's part of a larger cutscene, put it all into a separate event that runs everything.

Also, I noticed two issues with your event titled "door (Cliff Prison - A2)".
The first issue is one that Andar sort of mentioned.
On windows 1 and 2, you set the door to "through", but not the player/NPC.
Doors, you see, are usually placed on walls, and walls are impassable. So even if the NPC can move through the door, he cannot move through the wall that the door is placed on, so he's unable to move forward when you command him to. If you set the NPC to "through", he can pass through anything including the wall. (Always remember that if you set the player to "through", make sure to turn "through" off immediately after the movement has been completed... otherwise, your player will feel like a ghost, walking through everything XD)

The second issue is that you have the trigger for window 2 set to "parallel", but you don't have a way to stop the event at the end of the page.
Parallel and Autorun events will both loop by default. Much like the content of a loop, when the game engine reads through a parallel event and reaches the end, it jumps back up to the top and runs it again... over and over again until you tell it to stop. You didn't tell it to stop, so your game will get stuck on that event.

The most common ways to end a parallel event are to place an "erase event" command at the end, or to activate a switch/self-switch so the event moves on to a new page.
If you use the "erase event" command, the event will disappear for now, but it will be reloaded the next time the player enters the map. This is best used for events that you want to run multiple times in one playthrough, eg if you want the NPC to go to the door every time the player enters the map and interacts with him.
If you use a switch or self switch to move on to a new event page, the parallel page cannot be run again until you've deactivated the switch. You'd generally use this for things that should only happen once during any given playthrough, eg your NPC has gone through the door already and the next time he's interacted with, you want him to do something different. Or if you want him to go to the door and disappear, no longer to be found on this map, you'd turn "through" and "transparent" on for the NPC and then move to a new event page that's completely empty. Thus, he'll never appear on the map again.

You might be able to fix your problem just by ending the parallel event properly... but I would still recommend running all the different commands and movement routes for this mini cutscene through one event, as it makes it easier to see what's happening and troubleshoot when things go wrong.
Thank you, Andar, Asanti ! That is indeed was very helpfull and interesting to study, i managed to make everything working alright 🙂

For backlog, here is what its look like:
Spoiler: Commands in mz event editor
Code:
◆Set Movement Route:This Event (Wait)
:                  :◇Move Right
:                  :◇Move Right
:                  :◇Move Right
◆Scroll Map:Right, 4, 4
◆Set Movement Route:This Event (Wait)
:                  :◇Move Right
:                  :◇Move Right
:                  :◇Move Right
:                  :◇Move Right
:                  :◇Move Right
:                  :◇Move Right
:                  :◇Move Right
◆Set Movement Route:This Event (Wait)
:                  :◇Move Up
:                  :◇Move Up
:                  :◇Move Up
:                  :◇Move Up
◆Wait:3 frames
◆Play SE:Open1 (90, 100, 0)
◆Set Movement Route:door (Cliff Prison - A2) (Wait)
:                  :◇Turn Left
:                  :◇Wait:3 frames
:                  :◇Turn Right
:                  :◇Wait:3 frames
:                  :◇Turn Up
:                  :◇Through ON
◆Set Movement Route:This Event (Wait)
:                  :◇1 Step Forward
:                  :◇Transparent ON
◆Play SE:Move1 (90, 100, 0)
◆Fadeout Screen
◆Change Party Member:Remove Intro
◆Change Party Member:Add Reid
◆Transfer Player:MAP025 (8,6)
◆Fadein Screen

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-npc-open-pass-doors.152100/