Hi,
I need some help with a switch meant to change the map to a nighttime tint. I can turn it on when I want just fine, but I can't turn it off. I've tried looking for advice but all I find are tutorials on how to make switches(but not turn them off) or stuff on a time-based day-night cycle, which I do NOT want. I just want to be able to toggle the night tint on and off.
Also, when the nighttime tint is on, one of my door events just fails and doesn't trigger. Only one, and I can't figure out why.
this sounds as if you made mistakes in the event that you're using for turning the night on - please show us a screenshot of that event, we can't help you otherwise.
You need to provide screenshots, otherwise we're all only just guessing.
When you turn your nighttime switch on, you do a tint to make the screen dark. When you turn your nighttime switch off, add a corresponding tint screen command to change it back to normal. If you're not using a day/night cycle, you shouldn't have or need any autorun or parallel events to control this - you clearly make it night at a certain point in time, and make it day again at a certain point in time, so just do the appropriate tint screen on each occasion.
Your door event probably has something set up in the conditions that makes it unresponsive when the nighttime switch is on. Without seeing your event, all I can tell you is that when deciding which event page to make active, the engine starts at the highest numbered one and works its way back, stopping when it finds a page without conditions, or where all the conditions are met. So if page 1 and page 2 both have conditions that are met, page 2 will be the active one.
Your door event has nothing to do with the nighttime switch, so it should work at all times in the game. Why don't you have a sprite? If you don't have a sprite, the move route is meaningless.
Your second event is a bit weird too. The event commands are only going to run if the nighttime switch is ON, so the 'if nighttime is OFF' condition is NEVER going to be executed. If the switch IS ever OFF, this event is not going to run, because the conditions require the switch to be ON. As I said above - if you're not using a day/night cycle, then you have a specific place where you are turning that switch on, and a specific place where you are turning it off again. Just put the Tint Screen to nighttime and to normal at the same time, rather than relying on a parallel event to do the tinting.
I don't have a sprite for the door because it's actually stairs. I just used the quick event to make the transition.
I don't really follow what you're saying. Do I use two switches to toggle between day and night? I'm making it so talking to someone causes the transition to night and talking to a different person transitions to day.
Delete the door event and replace it with a quick event to do a transfer.
And no, I'm not saying to use two switches. I am saying you have two distinct events where the nighttime switch is turned on and off. On those events do the tint screen. If you know exactly when the tint needs to be changed, you do not need to use a parallel event.
So ... on the NPC that causes the transition to night, where you turn the switch on, add the command to tint the screen to make it dark.
On the NPC that causes the transition to day, where you turn the switch off, add the command to tint the screen back to normal.
Delete your parallel process event that does the screen tint.
If the ONLY thing your nighttime switch is used for is to determine whether to tint the screen, then the switch isn't needed at all, so you could delete the commands to turn the switch on and off. If it's used for other things (events react a certain way when the switch is on), then keep those commands there.
If you can't understand that, please post screenshots of the events for the two people you talk to to change it from day to night, and from night to day, and I'll tell you exactly where to put the commands.
It works! Thank you so much! 😀