How to build a weather system

Hey there,

I'm very new to RPG Maker and game dev in general. I'm struggling to make a weather system. I've tried different plugins that haven't worked for me. My current system is 2 common events turned on by a switch at the beginning of the game, which does work but not exactly as intended. The Common Events are:

1. Weather Cycle Handler
My only issue with this one is the BGS doesn't seem to play at all when a new weather set takes place.

2. Reapply Weather On Map Load:
This one is the big problem. I made this one to make sure weather is, as the title says, reapplied when transferring to a different map. That does work, and I also made it turn off weather when it's on an indoor map. However, this is also the issue. What ends up happening is the weather turns off indoors, so if it just started raining and a player walks into a house, then back outside, the rain stops.

Basically, how do I store the weather properly so If it's raining and a player walks in and out of a house, it "continues" the last set weather outside. I feel like I've done it correctly, but maybe the issue is something to do with the "End" of the conditional branches at the top of the reapply weather contents I made? But I don't know how to fix that, if that's what it is.

I've attached screenshot files of my common events. Any help fixing this or guidance to something easier would be much appreciated! As mentioned, I tried a few different weather plugins and none worked for me, but that could be down to inexperience and lack of understanding.

Thanks!
I was thinking about something along the lines of making weather change from starting slow and then getting stronger about a period of time,
1744557647694.png


The CORE Idea to fix your problem however is to have an IF statement with an Else option in there. Check for your MapID and let it rain in there when conditions are met.

this also lets you control certain maps to have snow in them instead of rain for colder areas.

to add more Maps to the first IF statement, all you gotta do is turn the "a === 20" into "a === 20 || a === 21" (the numbers for 20 and 21 are the Map ID's used in this example!)
So you won't end up having to type down the entire line for every check, ending with a lengthy line of an IF statement.

I think this approach might help you figure out something as I'm only trying to give you a lead.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-build-a-weather-system.176922/