Question about tracking an NPC event across multiple maps

Hello folks,

Not sure if this the right place to ask this but here goes. I'll try to be as detailed as possible

For those of you that have played The Legend of Zelda: Majora's Mask or Radiata Stories, you would have noticed that non-playable characters (NPCs) have a set routine or daily schedule. Let's assume one such NPC is called Jake. Jake's daily routine would be something like this


12 am - 6 am Sleeping in home/room. Door cannot be opened
6 am - 7 am Jake gets out of his room and walks to his workplace. This walk can extend to several maps
7 am - 12 pm Jake stands next to a door.
12 pm - 2 pm Player sees Jake walk and sit on a nearby table
2 pm - 7 pm Same as 7am – 12 pm schedule
7 pm - 8 pm Jake walks to the local pub. Sits on a table
8 pm - 11 pm Jake is sitting. Eating and and drinking
11 pm - 12 am Jake walks back home. Once he gets home, his house door is locked
Repeat daily routine

Obviously the above is too detailed and will entail things such as a world timer plug-in (which the community has already addressed).

However I want to try a simpler version. Let us assume we have two maps, Map 1 and Map 2. Let us also assume we have a simple common event counter (This is our clock for now). Our NPC Jake is going from Map 1 to Map 2, Waits in Map 2 then walks back to Map 1. The player leaves and enters the maps as they please, however Jake is still following his daily routine.

From what I read in some of the old RP threads, it appears RP is not equipped to handle this and some members of the community have attempted it but abandoned the idea

https://www.rpgmakercentral.com/topic/35012-transferring-events-to-other-maps/
https://www.rpgmakercentral.com/topic/19502-vx-ace-dynamic-npc-system-cancelled/
(Not sure how far this went)
https://forums.rpgmakerweb.com/index.php?threads/always-update-off-screen-events.73797/

A brute force way would be to save the locations of everyone in the world (or in this case Jake) so that it could be tracked by a global positioning tracker and work out a formula that translates those positions to the current map the player is on.

How would you folks suggest tackling this?
You're approaching this from the wrong direction.
You need to keep in mind that you don't have NPCs, you only have events pretending to be NPCs. And all events only exist on their maps while the player is on that map, events from other maps do not exist.

The solution is
1) to have different events pretending to be the same NPC on different maps
2) keep in mind that if the player isn't on a map, he can't see what's happening there anywa, and you don't need to detail-track those maps anyway.

With these two points there are several alternatives.
My suggestion is a time-based solution, where you decide what an NPC should do in any given time-chunk, usually one hour or 30 minutes or whatever you base your time-system on.
Then assign an event page conditioned to that time variable for doing what he should do if that number is set for your time.

You only have to make different events on different maps containing those pages.
If the player enters a map while the time system has that number set, the event with that time condition becomes the active one and performs as programmed.

You just have to add some empty pages for the times when the event should not pretend to be that NPC (when the NPC should be on an other map for example).
So you're basically saying to create an "illusion" for the said NPC. That's similar to what someone else said. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/question-about-tracking-an-npc-event-across-multiple-maps.96052/