So I have a complex parallel common event for weather which randomly chooses weather and how long it lasts, ect. but my issue is turning off weather inside. I have a switch for inside that sets weather effect to none in 1 frame, which works unless the weather had just recently changed. This is because there's a "build up" period when it begins to rain (the set weather effect rain is 300 frames and waits for completion). So it doesn't change to none until those 300 frames are over. Is there a way via script to stop the process? Or some other way to fix this (besides making rain appear immediately)?
Instantly stop weather effects in action?
RPG Maker MV SupportWhy would you wait for completion? That just means it's not going to run the next command in that event until the weather is established.
If you don't want the player to be able to do anything in that time, you would also need to add a Wait 300 frames and change the event to an autorun event so the player can't move until the weather is established. This might mean you have to take just the weather commands and the wait out of the parallel process event and put it into an autorun event.
If you don't want the player to be able to do anything in that time, you would also need to add a Wait 300 frames and change the event to an autorun event so the player can't move until the weather is established. This might mean you have to take just the weather commands and the wait out of the parallel process event and put it into an autorun event.
Well, the event controlling the selected weather is actually a parallel process that is constantly repeating a loop that slightly increases or decreases the weather effect every once in a while. Also since it's a parallel process the player can still move. So there is a first time effect for 300 frames so the weather slowly changes, then a loop for variation overtime. If the first time effect didn't wait for completion it would instantly go to the loop and then the weather would go from sunny to suddenly lots of rain, which I don't want.
Is your command to stop the weather on the transfer event, or is it a parallel process event on the map you're transferring to?
I've tried both already and it doesn't make a difference. So there's not any script lines I could use to stop the weather processing or force skip it?
well, from what I see, the command to set a NEW weather pattern cancels any pending weather settings. So it SHOULD just work.
Can you show screenshots of your two events?
Can you show screenshots of your two events?
Top of rain event: http://prntscr.com/9qoa73
Bottom: http://prntscr.com/9qoamz
Event inside: http://prntscr.com/9qoawc
Have you tried taking the waits out of the weather parts, and just add them as regular waits after? The wait during rain might be stopping you from interrupting it. (Though you'd have to know how long they are)
Yes actually. There wasn't a difference :/
Does the weather ALWAYS continue when you're inside, or does it gradually stop?
What is the 'inside' switch? To indicate whether you're in an inside room or not? Change the 60 and 120 frames (and the same for other branches) to do it immediately, rather than over X frames.
It seems to be in conflict with the other event that disables the weather.
I would set the weather to none in one event or the other, with no wait, so they are not butting heads against each other. Or make your parallel process event ONLY run when you're outside.
Maybe turn the 'light rain' switch off when you enter a building so the parallel process is no longer running, and then execute your 'set weather to none'.
What is the 'inside' switch? To indicate whether you're in an inside room or not? Change the 60 and 120 frames (and the same for other branches) to do it immediately, rather than over X frames.
It seems to be in conflict with the other event that disables the weather.
I would set the weather to none in one event or the other, with no wait, so they are not butting heads against each other. Or make your parallel process event ONLY run when you're outside.
Maybe turn the 'light rain' switch off when you enter a building so the parallel process is no longer running, and then execute your 'set weather to none'.
It was gradually reaching it's effect power then suddenly stopping. The inside switch was for whether you're inside or not yes. the 60/120 frames was a mistake left from copying but ultimately didn't change anything, they aren't even necessary when the inside event immediately shuts weather off, so I just deleted them. You have found the solution though; turning the 'light rain' switch off combined with the 'set weather to none' does make weather disappear instantly! yayyy!!! Now I just have to make more eventing to check what the weather was (there's more than just 'light rain' you might have guessed) so it can come back on when you go outside... and probably also a whole new set of events for the tinting that gives the appearance it's raining outside. That was why I left the rain switch on. Anyways, thanks never tiring shaz!
I would look at doing something like this ...
One common event that sets variables based on the current weather conditions, then turns off the weather (this would include turning off the switches that control your current common events).
One common event that looks at those variables and turns on the weather according to their values (by turning on the appropriate switches).
Maybe call them 'stop weather' and 'start weather'
Then on every map, add a parallel process common event that calls one of those, depending on whether it's an inside map (call 'stop weather') or an outside map (call 'start weather') and then erases itself.
One common event that sets variables based on the current weather conditions, then turns off the weather (this would include turning off the switches that control your current common events).
One common event that looks at those variables and turns on the weather according to their values (by turning on the appropriate switches).
Maybe call them 'stop weather' and 'start weather'
Then on every map, add a parallel process common event that calls one of those, depending on whether it's an inside map (call 'stop weather') or an outside map (call 'start weather') and then erases itself.
Original thread: https://forums.rpgmakerweb.com/threads/instantly-stop-weather-effects-in-action.55038/