Time system that goes on all maps? (Common events)

Hey! I have been struggling with finding the answer to this, but I am trying to figure out how to get a common event to go across all maps, rather than just one map. I'm using a time system for this, but it resets each map. I'm mostly just messing around with the program, but I do want to figure this one out.

What I'm trying to figure out specifically: If time is passing on a map the player is on, let's say after five seconds (variable labeled as minutes in game), an event starts to walk around on a different map. So if the player waits around more than five seconds on one map, then goes to the next map, the event has already been moving.

Here are my screenshots of the time system:
Spoiler: screenshots
1690090363269.png
1690090462240.png
1690090487034.png

(And then on a dif map)
1690090627388.png

If this is possible and I'm doing something wrong, please let me know!
few problems.

the parallel looks oke, but DO NOT USE = but >= so if its lacks, it will
not softlock.

the main problem in on the NPC where you set the variables to 0.
I'm also not sure why you set a SelfSwitch to it.

you can make a conditional branch for the time and their movement
in one page only, so each time (morning, dawn, evening etc) can have a different
moveroute inside of it.
let's look under the hood here... the common event should work like you're expecting; every 1 second (ish - frames don't exactly equal time), a counter goes up for minutes, then once you get sixty of those an hour counter goes up, until there are 24 of them and you increment a day timer. The person above me is right that >= is generally more reliable than = for this kind of thing, but since each number always goes up by exactly one, you will *always* hit that = and it won't be a big deal.

The next screen shot shows the event that turns on your timer, and that should work. You should be able to safely delete the common event call, because turning that switch on will also turn the parallel on. Otherwise, it looks like it just sets the time to 6 hours and disappears, which is good if you won't need it again; the self switch makes sense.

The problem is the last event: it's on a different map. Events that aren't on the players map aren't going to be doing anything; as a rule of thumb, you can pretend they don't exist until the player is on that map. What you actually want is probably a conditional on it: if time < 5 minutes, it's in place A doing thing A. If time >= 5 minutes (that's where the difference from = or > comes in), then move the event to somewhere else on the map and start it moving around. It can help with stuff like that to have the first page be a transparent sprite with the conditional on autorun, then show the sprite once it's moved into place; you might otherwise get a frame of it in one spot before it teleports away.
works well enough, on all maps
@ShadowDragon @BenSD
Hey thank you so much! I was able to get time working on both maps now, which is great! I was able to get it to do exactly what I wanted to do. (also @mMarix thank you sm! i will have to try that as well!)
Now the only issue is, well, the event was continuously repeating due to being on parallel. I got it to stop through this method i saw after googling it:
Spoiler: screenshots
1690137003119.png
However, if I wanted to do anything else with this event (add an option for the event to be talked to) It either repeats movement, goes to self switch A which is on parallel, or generally just isnt doing what I want it to. Is there a way to override this? I'm really happy about time working on all maps now though 😂
I would set a custom moveroute instead of parallel.
a custom move route is some kind of parallel on its own, so you
can talk to it when needed and continue it.

however, while the moveroute is broken, when talked, it started over,
caethyril made a moveroute fix for this to continue where it was last.

if you want multiple moveroutes to go different ways, Ocram have
a plugin for NPC Schedule, but I think you need RETRO for it to work.
but you can also just use the conditional branch, to make it easier,
you can look into [ConditionalBranch+] which make nested condition easier
to read.
if you want multiple moveroutes to go different ways, Ocram have
a plugin for NPC Schedule, but I think you need RETRO for it to work.
Thank you so much! I will check these out as well as try to fix the moveroute situation. NPC schedule is definitely what I would like to figure out so I will look into that. Thank you again for your help!! :LZSproud:

Original thread: https://forums.rpgmakerweb.com/threads/time-system-that-goes-on-all-maps-common-events.159613/