How to keep my autorun events from freezing up my game

I'm trying to do a autorun event that needs specific switches for it to trigger. For example this event can only trigger during midday and if I've seen a previous event. I turn on the switch for midday entered the area and everything works fine the event runs on its own and it ends but if I were restart the game enter the area on any other time than midday the game just freezes. I also used a self switch and it does make the game work fine when I enter the area but it also seems to end the event so when I enter the place at midday the event doesn't trigger anymore.
What I want to do is enter the area on any other time period other than midday and have it not freeze but at the same time have the event trigger once when I eventually enter the area in midday.
game freezes.PNG

On the End it has "Control switch: A = ON"
If possible, can you be more specific about how you've coded your day system? I have a feeling that there's some kind of condition that's constantly being met (or not met) that is interfering with your time system code, and causing the freezing.
Hi,
I see you set "Self Switch A = ON" if the "time of day = 3".

I think you need to add an "else" for the time of day check and then set a self-switch to break out of the autorun.
If possible, can you be more specific about how you've coded your day system? I have a feeling that there's some kind of condition that's constantly being met (or not met) that is interfering with your time system code, and causing the freezing.
time of day.PNG
0-1 is day 2-3 is midday and 4 is night
Hi,
I see you set "Self Switch A = ON" if the "time of day = 3".

I think you need to add an "else" for the time of day check and then set a self-switch to break out of the autorun.
Yeah that does seem to unfreeze it but when I reenter the area during midday the event doesn't trigger anymore.
Yeah that does seem to unfreeze it but when I enter the area during midday the event doesn't trigger anymore.

Well, you'd have to reset the switch to off after some conditional, or before a transfer player event.
First: if it's autorun event, try to make in parallel.
Guess I'm just going to have seeing the past event as the only trigger adding the time of day is too much and I'll figure that out later or hopefully I get a answer eventually.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-keep-my-autorun-events-from-freezing-up-my-game.139456/