Make weather change in believable steps and stay long enough to notice
Left to chance, the sky jumps from a clear day to a storm and back within an hour, and snow falls in midsummer. Here is a filter that takes any stream of random weather picks and turns it into weather with sensible neighbours, a minimum stay for each kind, and seasons that ban some kinds.
Why this works
Weather has a memory: it moves from one state to a nearby one and stays a while. Letting a chance draw only propose a change, and a few plain rules accept it, gives variety without the jumps that make the sky look broken.
When not to use it
Skip it in a game where the weather is a story event, set by hand, or in a stylised world where sudden change is part of the charm, such as a cartoon with a storm for each mood. Then keep your own script.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 4 common mistakes and the fix
- A diagram of every state
- 27 lines of example code with 4 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "Make weather change in believable steps and stay long enough to notice" (read_entry weather-that-changes-in-believable-steps) in my game. Build it step by step, and show me how you checked that it works.Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP