Trying to get a event to work

I'm trying to make the screen refresh when a switch turns on (day/night) - that way it doesn't look like things are just popping in off on the screen.

Any suggestions on how to get this to work?
Basically, I have two switches that are controlled via my time system. Day/Night
I need screen to refresh(FADE OUT then Fade back in) that way I can have events change in cities based on the same switches without it looking weird. The problem that my even has is that when the day shift is on, the night shift is off so I can't get this way to work.

upload_2017-12-9_13-50-2.png
The problem with this method, apart from the issues you've discovered, is that when the switches get changed, any events based on those switches will change immediately, while your fadeout hasn't happened yet. Your approach of parallel process event isn't ideal for these requirements.

What you need is something that will detect when the switches are about to change, fadeout the screen, change the switches, then fadein the screen. So it needs to be a part of your time system, not something extra that just uses your time system.

Your time system either needs to do the fadeout/message/change switches/fadein as part of its processing, or you need to remove the switches from the time system and make the time system call a common event that does the fadeout/message/change switches/fadein. Since you haven't indicated what time system you're using, that's about as far as I can help you.

You also shouldn't do parallel process events like that that are just going to loop and check continuously while you're on the map, without adding a Wait statement. It adds lag.
Dang! Okay, so it's not possible to do what I want via events. Thanks!
Well, it is, but you will just have to use the day/night switches to control the event, then have the event turn on/off other switches for day/night, which control the map events.

You still didn't say what your day/night system is, so I still can't help you any further.
It's mog's time system
A link would be helpful, and a screenshot of the plugin parameters showing how you've set it up.
From what Shaz is saying, it sounds like you need two more switches. We'll call them Change To Day and Change To Night. Have your time system toggle the Proper Change To switch and have that trigger a common event parallel process. This will do the fading effects that you want and then when that's complete, toggle your normal day/night switch as well as turning your Change To switch back off so that the parallel process stops running. Does that make sense?
Sorry Shaz: Here you go https://atelierrgss.wordpress.com/rmv-time-system/

My parameters are set up like this (i modified his code but it's same idea)

The switches are 13 and 14 (13 for day and 14 for night)

What's the difference between 13 and 48 (Day Shift Switch ID and Alt Day Shift Switch ID)? What @Frogboy said is pretty much what I had in mind - control your parallel process common event by the switches in the parameters, and inside the event, turn on a different switch for day or night, and use THOSE switches to control your events. You can then do the fade, change switches, and fade, without having events appear or disappear abruptly.

There will be more to it than that, as you won't want the common event running 60 seconds every frame, and if you turn off the switch that controls it (the one used by the plugin) you may cause other issues. So it might be necessary to put a conditional branch right at the top to see if the OTHER switch is on (in the "change to night" event, check to see if the day switch is on), and only do the processing if it is (this means your event code will only run when it changes from night to day or vice versa). Then at the end, after the conditional branch END statement, add a Wait 5 Frames or something, so it doesn't cause any kind of lag.

Using a common event also means it will run over all maps, so you don't need to worry about duplicating the event on every map.
So, I guess I only want this to happen in cities. Also, the difference is that the DAY shift set up via mog is only like 5 hours where the way I have it set up (edited) is 12 hours for day 12 hours for night for ease of making the game and controlling the events.


Also, I LOVE what you just said, so thanks!
In response to your PM (posting here to keep it in the forum - I don't do 1-on-1 help via PM).

Can you please test something out for me? Could you set up a common event that's set to parallel process and is triggered by switch 45 (your sunset switch). In the common event, just put a Text to say "it's sunset", then turn off switch 45. Play, wait for sunset to arrive, and tell me if the text only shows once, or if it shows over and over? I just want to see if the switches are getting set repeatedly by the plugin.

What's going to happen when you're not in cities? Do you have events that will be present/absent at different times of the day in the other areas?
I'll test it out! Thanks. I just PMed you because I didn't want to necro post 😀 Thanks for responding here! Ill let you know in a bit.

And yes, it's only in cities that I plan on having any real night or day events.
Necroposting is posting in a thread that hasn't been active in more than 30 days. It's often done by people who didn't start the thread, because they think they have the same problem (which is also thread hijacking). If you have a support thread and you haven't got a solution yet, it's okay to post again to bump it, as long as it's 3 days or more since you last posted in it (assuming the last post was yours - if it isn't, you don't need to wait at all) 🙂

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-get-a-event-to-work.88267/