Best way to change NPCs around when re-visiting a map?

So, I've got it so the player goes into the toilets of an inn, but after they're done there and come back out into the main map, the NPCs are going to be doing different things in different locations than before the player went into the toilets.

I'm just wondering how you guys usually do this.

The ways I know are:

1. Have multiple versions of the main map, with the characters where I want them and with their unique dialogue, etc.

(Not too keen on this method as it creates more maps. I also have a lot of interactivity within each map. ex. people can interact with a painting or a fireplace to get some description text. It means I'd have to have duplicates of these intractable events on each map.)

2. Have a variable that controls the story and use Yanfly's moveroute plugin. I can have it so that a script autoruns when the player gets back from the toilets, that immediately teleports NPCs to any set tile in the map.

This way is nice because it doesn't require extra maps and doesn't require having duplicates of NPCs everywhere. Only annoying thing I've found is that with testing, if I save the game and load, it works fine, but if I save, then make any changes to the game, then load that save again, it messes up. The character won't be in the correct position.

3. Have multiple versions of characters and show and hide them based on what the story variable is at.

This works easily enough, but does mean I'd have to have duplicate events for each NPC, which is a bit annoying and I assume pretty wasteful.


So, far No. 2 is my pick. Are there any better methods than that?
After the player returns, turn on a switch. On the main map have some empty events that show the npc after switch is on (this can take care of the changing position thing) or you can take a look at this:
https://galvs-scripts.com/2016/05/14/mv-event-spawner/
You can go with no.2. It seems better than the rest
I use the variable that control the story (or something like that). Usually when teleporting, I make the screen fade-out, and when we're on the next map, I have an autorun event that took care of everything (like teleporting the NPC). After everything is set, I fade-in the screen and erase the autorun event.
I use the variable that control the story (or something like that). Usually when teleporting, I make the screen fade-out, and when we're on the next map, I have an autorun event that took care of everything (like teleporting the NPC). After everything is set, I fade-in the screen and erase the autorun event.

Gotcha. So, basically, my No.2. Do you use Yanfly's plugin for that as well? Or something else? The issue I get is that if I do what you do, when I save, make any changes to the game and then reload, the NPCs aren't in the right positions. They're back at their defaults.

After the player returns, turn on a switch. On the main map have some empty events that show the npc after switch is on (this can take care of the changing position thing) or you can take a look at this:
https://galvs-scripts.com/2016/05/14/mv-event-spawner/
You can go with no.2. It seems better than the rest

I'll take a look at that plugin. Sounds useful.
Gotcha. So, basically, my No.2. Do you use Yanfly's plugin for that as well? Or something else?
No, all done with command event, switches/variables, and event pages.

The issue I get is that if I do what you do, when I save, make any changes to the game and then reload, the NPCs aren't in the right positions. They're back at their defaults.
For the issue, you can apply a switch instead of erasing the autorun event (or make the autorun become a common event, thus we can call it whenever we need it). When the player is going to save, add the fade-out again, save, do the autorun event, and then fade-in. Only viable if you're saving from NPC/event, it seems.
No, all done with command event, switches/variables, and event pages.

Just remembered I can change an event location using the set event location command, which is way easier than using the Yanfly plugin.
Maybe it's just me, but I like number 3 better.
It makes it much easier for me to be able to see directly on the maps where the events (NPCs) will be and plan accordingly.

Original thread: https://forums.rpgmakerweb.com/threads/best-way-to-change-npcs-around-when-re-visiting-a-map.105680/