A small problem with one event

Hey all,
So this event that's giving me trouble is responsible for putting the NPCs on the map in specific areas depending on the time of day you enter the map. Now, this event has all 6 day parts in it - dawn, sunrise, day, sunset, dusk, night - but only the dawn one is giving me trouble. Should also mention this is a copy/paste event from other maps where it works perfectly fine.
Basically with my save game, I enter the map at 4:45 AM, which is 45 minutes into the Dawn part. At this point, this event should put all the NPCs from this map at their designated locations. MOST characters are at their spots, with the exception of the Overseer who comes marching out of his house as if the clock just hit 4am. The issue with the other characters is that while they're in their spots, they immediately try to return home (with the exception of the aforementioned Overseer and the character named Walzur). There's nothing in their programs that should cause that to happen until Dusk takes over. At dawn they should take their spots and for the most part they just wait there (a couple have random moves).

Only Dawn is affected. Any other time of day, the event goes off without a hitch, the NPCs don't give me any trouble, they are where they are supposed to be and they remain there as they should. I've checked other events on this map, none of them should have any effect on this at all. Also to reiterate, this event works flawlessly on every other map I use it on (obviously with the events it moves changed). I'm attaching a screenshot of the event itself, let me know if there are any other pics I can take that might help you understand the issue better.

Also please note that I have confirmed that the necessary switches are flipped, the teleport switch is on when I enter the map, the Dawn switch is on, the other day time switches are off.

EDIT: Also would like to point out that when I remove the dawn section from that event (and drop in a self switch), the normal dawn movements take place - the NPCs all leave their house and go and stand in their appointed spots, no issues. It just seems like there's something right there in that one branch for dawn that is causing all my troubles but I don't see it.
most of what you're describing has nothing to do with the problem.
1) please give screenshots of the event that moves wrong.
nothing in your teleport moves the events, it only sets a start position.
so if the event behaves differently than expected, we need that event's pages to start looking
2) please give screenshots of the event(s) that change the switches for time
I've attached a screenshot of one of the characters with their custom move route assigned for the dawn day part. The 300 frame wait at the top is due to the fact there are 7 people coming out of this house at the same time, they all have different wait times depending on where they are in line. The move to 16, 25 puts her at the front door of the house, switch 182 flips which makes the door open, then the move to 9, 17 puts her at her position where she'll be the entire day. This only takes effect if the player is on the map when the time switch flips. The part of the teleport event that puts her in her place seems to be fine, but she (along with 4 others) will move immediately back to the front door of her house and I can't figure out why - that's not in a move route until dusk. Also during the dawn move, the door switch is never flipped, so they just sort of line up outside the door, so I'm pretty sure it's not reading this from the dusk move route.

All other aspects work fine - the automatic move routes if I'm on map when the time changes, and the teleport event works for all day parts, dawn is the only one with this odd behavior - again keep in mind there is one character that makes his dawn move route when I pop on to the map after dawn, but he stays in position along with the other guy.

Let me know if you want to see more characters/event pages or whatever else you need.

As for the time switch, those switches are controlled via Mog's time system plugin and that is working perfectly - time changes, switches all flip as they should.
that is not the complete event - we are missing the other event pages.

If an event with that structure goes wrong, then there are only two basic possibilities:
either the wrong page is active (most of the cases), or the pathfinding script hickuped (rare).

so your first step should be to find out which page is active when the problem happens.
the easiest way to do this is to give each page a different sprite for the test - like first page is a cake, second page is a bucket and whatever other sprites or tile graphics you have available.

do that, and most likely you'll find that the wrong page has priority, causing the wrong behaviour.
and if not that then you'll have to check your pathfinding plugin.
Ok, so I figured out what's happening but not why. Basically the reason they appear to be trying to return home is because the first stop in their auto move routes when they're leaving in the morning is right inside their front door. This is also why they can't get through the front door, the door switch doesn't get flipped until they reach that position (from inside the house). Now on every other map, when I enter the map after a time switch is flipped, the NPCs don't run through their move route. And the events on this map (teleport, NPCs) are all copy/pasted from functioning events on those other maps and edited for this map, so there's no reason this should happen. So I guess what I really need to figure out is how to make the auto move route only run when I'm on the map at the time the switch flips and not just because the switch is on when I enter the map.
the teleport event, does it help if move the switch 202-205 to happen before the set event locations?
your teleporting the event while the wrong page is active on that event just wondering if its possibility that the wrong page being active before the switch is flipped could be effecting it.
also the possibility of the location already being occupied by another event?
i know you can move the event with content movement commands to occupy the same space as long as they have different layering but other methods of overlapping events tend to not work so well.
The correct page fires off, I was able to test that using Andar's advice about changing the sprite for each page. The teleport event itself is only the single page that checks for what time of day it is and performs the actions accordingly. The movement that is being undertaken by the NPC event is indeed the Autonomous Movement for the various NPCs during the Dawn time period, also tested by setting the Autonomous Movement to fixed instead of custom - when that happens, they appear in their proper positions and don't try to move from them. As for those switches you mentioned, they're all related to separate events and don't actually have anything to do with the Autonomous Movement setup, but since I have no better ideas I'll give that a try next just in case. Also no events blocking the placement of these NPCs, the teleport seems to be working as it should, it's just a matter of getting the auto move routes to not process once the teleport is complete as they should only run if the player is present on the map when the time switch flips, whereas the teleport is to put them in position when you enter the map at a given time.

Edit: No luck moving those Control Switch commands around.
I've figured out what's causing the problem, still don't know why but it doesn't matter. When there's more than one move to: command in the move route, it'll move regardless of the teleport. I'll be re-doing the events to eliminate the multiple movement commands.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/a-small-problem-with-one-event.137998/