How to make event npc stay fixed at new location?

I have an event npc standing in front of a house. He asks the player to come in, then turns around and enters the house. The thing is, I want him to stay gone after the player has that first initial interaction. I was using a self-switch, but this just resets when the player exits and returns to the map, resulting the event npc standing back in front of the house. What can I do to fix this so that the event npc doesn't reappear after exiting and returning to the map?
You must not be using the self switch correctly, as that's exactly the kind of thing they're meant to be used for.


Did you add a second (higher numbered) page with no sprite conditioned by the self switch?


Please post screenshots of your event pages - make sure to include the whole window, not just the commands.
It can be done in multiple ways, but what I normally do is move the NPC to the new location using the Set Move Route command, turn on a switch, create a new blank event page for the first event with a higher number priority linked to that switch and then create the NPC at the new location whose run condition is that switch. Make sure the switch is turned on only after the Set Move Route event finishes execution.
<removed - misread>
Thanks for your replies. I read up some more on switch tutorials, and I just got it working properly. I'm really glad so many resources are available.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-event-npc-stay-fixed-at-new-location.67372/