Weather
Each map picks its weather in Map > Map Settings: a pattern and an amount. The map keeps it in its weather row, as pattern and amount. The amount is how many drops, flakes or motes share the sky; the slider stops at 400.
The editor shows a clear sky while you work. Press the Weather button on the viewport's title bar to see the storm without pressing Play. When the weather changes while the button is off, the status bar says Weather hidden in the viewport and the pattern's name.

The patterns that ship
- clear
- Nothing at all (also
none). - rain, drizzle, downpour
- The same water at three weights.
- snow, blizzard
- Drifting snow, and driven snow.
- hail
- Fast and hard.
- embers
- Rising sparks that glow at night.
- sand
- Dust blown sideways (also
sandstorm). - fog, clouds, glitch
- Flat fields you look through rather than things that fall.
- thunderstorm
- Rain, a heavy sky, gusts, lightning and thunder.
- tornado, waterspout
- A funnel that pulls on the wind.
- hurricane
- A whole sky turning slowly.
- eruption
- Embers rising, ash falling, the sky gone dark.
- fair
- Fair-weather cumulus, nothing falling (also
fairweather). - overcast
- A grey day, nothing falling (also
cloudy). - clearsky
- The sky swept clear (also
sunny).
The weather's sky
A pattern changes the clouds as well as what falls. Rain brings a low grey sheet, a thunderstorm brings dark towers lit from inside by its lightning, fog lies on the ground, and fair lays cumulus. The map's own sky is not written over: the pattern's sky lies on top of it while the pattern holds, and the map's sky comes back when the weather clears. clear (or none) is the map's own sky as you set it on the Sky panel.
A pattern says where the sky goes with sky. fields, one for each Sky property it moves, by the property's own name:
comp pattern squall -1 -
field label Coastal Squall
field sky.clouds.type towering
field sky.clouds.style storm
field sky.clouds.coverage 0.8
field sky.clouds.darkness 0.5
field sky.atmosphere 0.75Properties a pattern does not name stay the map's own. The Weather page of a map lists a pattern's sky under Its sky.
Changing the weather
A change takes time. The clouds move from the old sky to the new one over the map's Change time (20 seconds unless you set it, on the map's Weather page). Over the first half the old weather's rain or snow thins out; over the second the new one's arrives, so rain starts once the cloud is there. In the editor a change you make by hand takes two seconds at most.
A weather cycle
A map can walk through a list of patterns while the game plays. On the map's Weather page, under Change and cycle, switch Cycle on and add steps: each step is a pattern, how long it holds, and how long the change into it takes. Repeats loops the list; Shuffled picks the steps in an order worked out from the Seed, the same order every time for the same seed. The cycle is saved in the map and runs only in play.
Your own patterns
Write them in assets/data/weather.vfa. A pattern row is a pattern (fields label, alias, wind); each layer row below it belongs to it, up to the next pattern.
comp pattern squall -1 -
field label Coastal Squall
field wind 1.5
field alias gale
comp layer 1 -1 -
field kind fall
field body rain
field amount 1.0
comp layer 2 -1 -
field kind flash
field every 9
field jitter 5
field amount 0.7A layer's kind says what it is, and its other fields are its dials:
- fall
bodyrain, snow, embers, hail or sand, andamount(its share). Things that fall in the world and land on the ground.- field
bodyfog, glitch or clouds, andamount. A flat field you look through.- deck
amount0..1. A heavy sky. It darkens the world through the lighting, so a campfire still reads under it.- flash
every(seconds),jitter(seconds),amount0..1. Lightning. It lifts the dark, so it shows at night and not at noon.- rumble
after(seconds) andsound. Thunder, a moment after each flash.- gust
every(seconds) andharder(a multiplier). The wind leans harder in bursts. Rain, clouds, grass and waves all lean together.- vortex
radius,spin0..6,amount0..1,bodyandcolumn. A funnel.amountis how much of the spin pulls inward.bodyandcolumngive it a visible column of grit or spray; leave them out for a vortex you only see through the rain going round it.
amount on fall and field is that layer's share of the map's amount; alias gives a pattern a second name.
A document with any pattern row in it replaces the built-in list, so a project that only wants snow can offer only snow.
Seasons
assets/seasons.vfa weights the sky each season rolls. A calendar calendar row carries length (days per season) and rollminutes (real minutes between rolls). A season <spring|summer|autumn|winter> row has one field per pattern, the pattern's name and its weight, and replaces that season's weights:
comp season winter -1 -
field snow 30
field clear 34Weights go by name, so the order of the patterns does not matter. A season with no row keeps the built-in weights, which name the built-in skies (none, rain, snow, embers, fog, clouds, hail, sandstorm); a name no pattern answers to weighs nothing.
Where a funnel stands
A pattern says what a tornado is, not where. Without a place, the funnel stands in the middle of the view. Put it somewhere from a script with engine wxfunnel <x> <y>.
The funnel is a solid column, of dust for a tornado and of spray for a waterspout: what stands behind it is hidden, what stands in front of it is not covered, and its sides thin into the air. It hangs from the cloud's base to the ground, narrow at its foot and wide where it meets the cloud, with streaks winding round it as it turns, a skirt of debris (or a ring of spray) at its foot, and it darkens with the light.
The storm in the sky
A pattern lays its storm in the clouds where the funnel stands, chosen from the layers it already has:
- vortex wider than 3000, no column
- A hurricane: a broad low dome, highest on a towering eyewall and sloping softly down across its dense middle into its bands, round a clear eye that widens toward the top like a stadium; a thin cirrus shield drawn out in streaks lies over the middle and the inner bands, and three bands trail out of it as it turns with the sea between them, and a low grey rain shield under the middle and the bands. The bands reach 1 km for every 200 of the vortex's radius. Under a band the rain is heavy and the sky dark, between two it eases, so the rain comes in waves as the storm turns. Inside the eye no rain falls and the sky is open.
- vortex with a column
- One cumulonimbus over the funnel, as below.
- flash and no vortex
- One cumulonimbus: a flat dark base wider than its waist, a crown of big billows climbing as it grows, an anvil fanning out downwind that thins and frays at its far end, a short low shelf under its leading edge, a grey curtain of rain under it, lightning inside it.
- embers under a heavy deck
- An eruption: a boiling ash column that widens as it rises into an umbrella domed over the column with a paler top, a surge of ash round its foot, ash falling in curtains downwind, lit orange from below at its foot and flickering with lightning at dusk and by night.
Rain, snow, hail, sand and embers fall from the cloud's base, so an eye above the clouds sees the storm from over it with nothing falling round it. By night the clouds are lit a soft blue-grey by the night sky, and a strike lights a storm's cloud white from inside.
Weather in one place
A zone can carry its own weather: a dry valley while the coast drowns. Where zones nest, the innermost one with an opinion wins, and where none has one the map's own weather stands. Set it from a script with engine zoneweather <zone> <pattern> [amount], and engine zoneweather <zone> off hands that ground back to the map.
Fog
Fog that thickens with distance and pools low on the ground. Each map picks one in Map > Map Settings under SKY: Off, Mist, Valley fog, Dense or Night fog, with a Fog colour to tint it. The manifest keeps it as fog <preset> [RRGGBB].
A zone can bring its own: select it, pick a Fog in its Properties and a Blend time (instant to 10 seconds). Walk in and the fog rolls over to the zone's; walk out and it rolls back.
From a Rûn program, Fog.Use("mist", 4) blends to a preset over four seconds, and Fog.Release() hands the fog back to the map and its zones.
Sound
A sound (and its volume) in a map's weather row plays a loop whenever the weather where the player stands is not clear. From a script: map weathersound <wav> [vol].
From a script
weather rain 220
weather thunderstorm 360
weather clearweather changes the sky while the game runs; it does not change the map file. A third number is how many seconds the change takes: weather thunderstorm 360 45.
In a Rûn program: Weather.Change("thunderstorm", 45) changes over 45 seconds, Weather.Progress() is how far through the change the sky is (0 to 1), Weather.Now() is the pattern the sky is under, Weather.ChangeTime(30) sets the map's change time, and Weather.Cycle("on"), ("off") or ("restart") runs the map's cycle.