Need to make npc disappear after move route

Hello, I have been trying for hours with no success making a npc disappear after doing a move route (using autonomous movement)
I use moghunter time system and I made the event happen at 17.00 time.
The npc did the move route at 17.00 and walking to his house,but I cannot make him disappear after touching the door.
I tried using erase event but the npc disappear right away before walking.
What is the most efficient and simple way I can make him disappear after touching his house door? And erase the event obviously.

The goal is to make the npc walk home,but the player/actor can still move around and not stopped,because it is not a cutscene
I cannot use set movement route from the Event list because it make the player freeze and cannot move,when the npc is walking home.
You can set switches on/off during the autonomous movement. Then the NPC can have a blank Event Page with this Switch as condition.
Make the move route wait for completion.

If you don't want the NPC to come back again after entering the house, turn on a self switch and add a second page with no sprite, conditioned by the self switch. If you do want them to reappear, just use erase event.

Make sure the NPC isn't trying to walk somewhere they can't, or it will freeze the move route and your game will hang.
You can set switches on/off during the autonomous movement. Then the NPC can have a blank Event Page with this Switch as condition.
OMG it is actually so simple and easy to do. Thanks I honestly didnt know you can insert switch on/off there.
I’ll see if it works now

Make the move route wait for completion.

If you don't want the NPC to come back again after entering the house, turn on a self switch and add a second page with no sprite, conditioned by the self switch. If you do want them to reappear, just use erase event.

Make sure the NPC isn't trying to walk somewhere they can't, or it will freeze the move route and your game will hang.

Yes actually I need the npc to do this everyday. So he goes out in the afternoon and went home at sunset.
How can I make him come back and make this into a cycle?
I am thinking creating a copy of him in his house and doing the exact same when he Is outside.
And is there a way to make the npc can use the door like the player?
Like playing the door animation and sound.
If you want the event to do that again over and over, just use erase event. That will make the event spawn again on its original position. (You must change maps for this to work, like leave map re enter map). If you stay on the same map, this event will not respawn.

And yes, npc "can use" the doors, but you need to event those on a move route command. Like this:
sadasdasdas.JPG


This will make the door sprite cycle and play the open SE.
So I managed to make the npc walk back home with multiple switches and events,but another problem appears.
Whenever I change map and come back he just keep doing that because the event set to autorun and it started everytime I enter the map.
But all is good if he reached his destination,because at his destination it activate erase event.
I wonder if there are ways he can continue doing what he is doing without interrupted by the player entering the map.
I also cannot make him come back out the next day without exiting the map.
I understand this is how the engine works,but maybe there are other way?


EDIT: After some more search I found this plugin called remember event position, hopefully it can solve the problem I'm having. but I'm not sure this gonna work because I used autonomous movement

Original thread: https://forums.rpgmakerweb.com/threads/need-to-make-npc-disappear-after-move-route.120569/