MZ NPC Pathing/position remains when player leaves/re enters the map

Hey all.

So I might have opened a can of worms with what I am trying to accomplish here.

I'm using the custom pathing for my NPC's but I was wondering if there was a way to get them to stay where they are when I exit/re enter the map.

For example, If I have them walk towards the kitchen, I leave the house then walk back in. In the time it's taken me to walk out and walk back in, I would want them to be in the kitchen.

Instead what happens currently is, they will just respawn and their pathing will begin again.

Is there any way I can make the NPC's positon/pathing more persistant?
yes and no - there are plugins to remember event positions, but using them that way will cause problems.

fact is that the other maps don't exist when the player is elsewhere. everything on the map is reloaded when the player enters it, resetting all event positions and events by default.
if you store the event position, then the event itself is still reset and will begin the move as if it is on its original position - and as far as I know there are no plugins to remember a move route step as well as the current positions.

and this idea has a lot of other problems - not even professional games let events on other maps work outside the player experience, they only simulate the time away for capacity reasons.
you'll have to do the same...
Hello! I made a plugin that does retain events position, direction and move route. I will release it later today.
But as @Andar explained, events won't keep moving while outside the map. The plugin will only respawn the event to its last position when you left the map, and will resume its route from that point.
Moved to: Plugin Requests
yes and no - there are plugins to remember event positions, but using them that way will cause problems.

fact is that the other maps don't exist when the player is elsewhere. everything on the map is reloaded when the player enters it, resetting all event positions and events by default.
if you store the event position, then the event itself is still reset and will begin the move as if it is on its original position - and as far as I know there are no plugins to remember a move route step as well as the current positions.

and this idea has a lot of other problems - not even professional games let events on other maps work outside the player experience, they only simulate the time away for capacity reasons.
you'll have to do the same...
Thanks so much, Andar, I have a very limited understanding of like, game design and Javascript though trying to learn from LinkedIn. This has no doubt saved me hours of trying to work this out.

I suppose Ill try something that simulates the time away
Hello! I made a plugin that does retain events position, direction and move route. I will release it later today.
But as @Andar explained, events won't keep moving while outside the map. The plugin will only respawn the event to its last position when you left the map, and will resume its route from that point.
Amazing !! now I just got to get my head around plugins haha
Hello again!
Here's the plugin:
TSR_SaveEvent

It's really simple to use.
Good luck! 🤘
Hello again!
Here's the plugin:
TSR_SaveEvent

It's really simple to use.
Good luck! 🤘
Absolute Scholar! thanks so much

Original thread: https://forums.rpgmakerweb.com/threads/npc-pathing-position-remains-when-player-leaves-re-enters-the-map.133622/