Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Weather Types

Weather type specifies conditions under which it can occur (temperature, humidity, pressure, windpower, time of day, etc.) and what effects it causes on the game world and reality bubble.

When selecting weather type, the game goes over the list defined in region settings and selects the last entry that is considered eligible under current conditions. If none of the entries are eligible, invalid weather type "none" will be used.

Fields

IdentifierDescription
id(mandatory) Unique ID. Must be one continuous word, use underscores if necessary.
name(mandatory) In-game name displayed.
glyph(mandatory) Glyph used on overmap.
color(optional) Color of in-game name.
map_color(optional) Color of overmap glyph.
ranged_penalty(mandatory) Penalty to ranged attacks.
sight_penalty(mandatory) Sight penalty, aka multiplier to tile transparency.
light_modifier(mandatory) Flat bonus to ambient light.
sound_attn(mandatory) Sound attenuation (flat reduction to volume).
dangerous(mandatory) If true, prompts for activity interrupt.
precip(mandatory) Amount of associated precipitation. Valid values are: none, very_light, light and heavy.
rains(mandatory) Whether said precipitation falls as rain.
acidic(optional) Whether said precipitation is acidic.
sound_category(optional) Sound effects to play. Valid values are: silent, drizzle, rainy, thunder, flurries, snowstorm and snow.
sun_intensity(mandatory) Sunlight intensity. Valid values are: none, light, normal, and high. Normal and high are considered “direct sunlight”.
animation(optional) Weather animation in reality bubble. Details
screen_color_overlay(optional) Full-screen color overlay in tiles mode. Object with color (RGB hex string) and alpha (0-255).
effects(optional) [string, int] pair array for the effects the weather causes. Details
requirements(optional) Conditions under which this weather type will be eligible to be selected. Details

animation

All members are mandatory.

IdentifierDescription
factorDisplay density: 0 is none, 1 will blot out the screen.
glyphGlyph to use in ASCII mode.
colorGlyph color.
tileGraphical tile to use in TILES mode.

effects

Universal fields

IdentifierDescription
name(mandatory) One of the below listed effects, completely changes the json loaded for some
intensity(mandatory) Intensity of the effect to give
Names
  • morale: Gives player morale, requires additional defined fields
  • effect: Gives players an effect, requires additional defined fields
  • wet: Causes players to become wet, amount is intensity
  • thunder: Thunder is caused with a one in intensity chance
  • lightning: Lighning is caused with a one in intensity chance

Morale

IdentifierDescription
intensity(mandatory) This effect is applied every x turns
bonus(mandatory) Amount of morale each stack gives
max_bonus(mandatory) Max amount of morale gained
duration(mandatory) Duration of the morale effect
decay_start(mandatory) How long until the effect starts to lower in intensity, total duration is this and duration added
morale_id_str(mandatory) Id of the morale effect applied
morale_msg(mandatory) Message to give when gaining the morale
morale_msg_frequency(mandatory) Percent chance to display the message on gaining effect
message_type(mandatory) Type of message; 0 == Good, 1 == Bad, 2 == Mixed, 3 == Warning, 4 == Info, 5 == Neutral
Example:
{
  "name": "morale",
  "intensity": 3,
  "bonus": 2,
  "bonus_max": 60,
  "duration": "180 s",
  "decay_start": "60 s",
  "morale_id_str": "morale_weather_rainbow",
  "morale_msg": "You stare in awe at the rainbow.",
  "morale_msg_frequency": 8,
  "message_type": 0
}

Effect

IdentifierDescription
intensity(mandatory) This effect will be applied every x turns
duration(mandatory) How long the effect lasts
effect_id_str(mandatory) String of the effect id to give
effect_intensity(mandatory) Intensity of the effect to give
bodypart_string(optional) Bodypart to apply the effect to, default whole body
effect_msg(mandatory) Message to give when gaining the effect
effect_msg_frequency(mandatory) Percent chance to display the message on gaining effect
effect_msg_blocked_frequency(mandatory) Percent chance to display the protection message on preventing effect
message_type(mandatory) Type of message; 0 == Good, 1 == Bad, 2 == Mixed, 3 == Warning, 4 == Info, 5 == Neutral
precipitation_name(mandatory) Name to display in string “Your umbrella protects you from the precipitation_name”
protection_data(optional) Array of check flags or traits ( along with DEFAULT which is always applied ) and odds ( one in x chance ) to be protected from the effect
Example:
{
  "name": "effect",
  "intensity": 3,
  "duration": "30 s",
  "effect_id_str": "emp",
  "effect_intensity": 0,
  "precipitation_name": "brain waves",
  "bodypart_string": "head",
  "effect_msg": "You feel an odd wave-like sensation pass through your head.",
  "effect_msg_frequency": 16,
  "effect_msg_blocked_frequency": 32,
  "message_type": 2,
  "protection_data": [
    { "check": "RAIN_PROTECT", "odds": 1 },
    { "check": "ACIDPROOF", "odds": 1 },
    { "check": "DEFAULT", "odds": 2 }
  ]
}

requirements

All members are optional.

IdentifierDescription
pressure_minMin pressure
pressure_maxMax pressure
humidity_minMin humidity
humidity_maxMax humidity
temperature_minMin temperature
temperature_maxMax temperature
windpower_minMin wind speed in km/h or m/s, e.g. "20 km/h". Legacy numbers are read as mph.
windpower_maxMax wind speed. Uses the same units as windpower_min.
humidity_and_pressureIf there are pressure and humidity requirements are they both required or just one
timeTime of day. Valid values are: day, night, and both.
required_weathersWill only be selected if conditions match for any of the specified types, i.e. rain can only happen if the conditions for clouds, light drizzle or drizzle are present. Required weathers should be “before” this one in the region weather list.
required_weather_patternsRequires one or more weather_pattern values. Use an array to require patterns at value >= 0, or an object to set explicit minimum values per pattern id.

For acid weather and similar variants, prefer required_weather_patterns over the legacy acidic requirement flag. For example:

"requirements": {
  "required_weathers": [ "drizzle" ],
  "required_weather_patterns": { "acidic": 1.0 }
}

Example

{
  "id": "lightning",
  "type": "weather_type",
  "name": "Lightning Storm",
  "color": "c_yellow",
  "map_color": "h_yellow",
  "glyph": "%",
  "ranged_penalty": 4,
  "sight_penalty": 1.25,
  "light_modifier": -45,
  "sound_attn": 8,
  "dangerous": false,
  "precip": "heavy",
  "rains": true,
  "acidic": false,
  "effects": [{ "name": "thunder", "intensity": 50 }, { "name": "lightning", "intensity": 600 }],
  "tiles_animation": "weather_rain_drop",
  "weather_animation": { "factor": 0.04, "color": "c_light_blue", "glyph": "," },
  "screen_color_overlay": { "color": "#bfd6ff", "alpha": 24 },
  "sound_category": "thunder",
  "sun_intensity": "none",
  "requirements": { "pressure_max": 990, "required_weathers": ["thunder"] }
}