Invisible NPCs reappear after re-entering town

So, I have some invisible NPCs in a town I made. But when I enter a shop, and then leave, the invisible NPCs are visible again. How can I fix this?
You would need to turn them invisible every Time you enter that Map.

Or depending on why they are Invisible, trying to use another Solution with multiple Eventpages.

Why are they invisible?
Why are they invisible?

I use the Set Movement Route command to set their transparency on. Then when the player walks on the event, the command triggers and turns the affected NPCs invisible.
It's a bit hard to guess what your reason is, without an explanation.

If you want them to disappear/be deactivated for some reason, I'd set up a new empty event page with a switch that's on, that indicated that they currently aren't active.

For example, have an additional page in each of those events that should be gone when you reenter the map und give them all the same switch (for example named NPCsGone). Now you can activate that switch from a point where it seems reasonable. From a cutscene event that made everyone disappear or whatever key element of you story caused it. For example at the part were you now have the move routes to make them transparent (if you handle all of them through 1 event).

If you ever need them to return, you can either turn off that switch or have a 3rd page with another condition (for example another switch) with their new dialogues or whatever.
basically any time a map is entered, it is reloaded from the files.
the only thing remembered by default are the switches and variables.

so to permanently change a map event, you need to switch its pages by default, or use a plugin that forces the engine to update the event data (commonly used for positions).

the move routes effects are usually not remembered, they are intended for quick and temporary changes.

Original thread: https://forums.rpgmakerweb.com/threads/invisible-npcs-reappear-after-re-entering-town.152667/