A Few Questions

]Alright so I've been having some issues with my switches working properly. I'm not sure if it's how the triggers are set up or something else. I'm trying to make the intro cut scene and what I need is to have complete control over the day and night time settings. I think I almost have it currently I have the scene start out in the middle of the night but every time i start it up there is a delay for the tint adjustment to make it night. This is just one example of when the switches don't work as intended. I ended up making a lot of changes and cut parts out in order to get it all to work so far.
 

Video of what the scene looks like so far

Map 1 page 2 and 3 set up with a selfswitch for the night and day time


page 4 and 5


Map 2

Page 1

My questions

1. Will my control switches still be turned on or off even though I have moved to a different map?

2. Will my control switches affect an events on a different map?

3. Is there a way to have 2 events interact with each other like for example can I have a NPC event interact with a door 

alright so those are my questions so far
A few things first:


There is always a slight delay before the autorun starts, because parallel processes need to be started first. Your parallel process for night doesn't get started until it's triggered by the autorun, so the tint will always come later.


Day/Night-tinting is better done in a parallel process common event, NOT in the map events - and especially not in that way mixed into a cutscene. In cutscenes, you either tint when you need it without a parallel process, or you control external parallel processes.


For a good common event parallel process doing night-tinting, you'll need either two switches or one switch and one variable.


The first switch is the one that is triggering the CE to run or not - this is usually controlled OFF inside houses and ON outside, in caves or cellars or so.


The common event should then check with a conditional branch if it's day or night - that is what the other switch or variable (hour-counter) is about. Depending on the result, the branches will tint for day or for night.


After the tinting, you'll include a wait(30) as the last command - you don't need to check for day/night sixty times per second, that would only create a lot of lag.


Now to your questions:


There are two types of switches, general switches and self switches.


Self-Switches are event-based, no map event can effect, check or react to the self-switches of other events. They are used for the internal logic of single events.


General switches (and variables) are game-based, which means that their values are identical to all parts of the game. So yes, they will store their values and affect all other maps. However, there is only one active map - which basically means that those switches will affect the other maps at the moment the player enters those maps. Events on other maps do not run if the player is not on that map, you'll need common events to have something controlled independent of which map the player currently walks on.


3) not directly, but one event can trigger switches and the other event can check them, or you can use move route commands to change other events. But the trigger is only for player (unless you use scripts, but I wouldn't suggest that for beginners)

Original thread: https://forums.rpgmakerweb.com/threads/a-few-questions.23605/