ZoneDefinition ​
Inherits: DatabaseResource < Resource
A zone: a named place of the map ("Elderwood", "The Sunken Caves", "Port Haven"). A zone has a name, a colour and a line for the banner shown when the party enters it. A zone can have a parent (a sub-zone: "Elderwood > The Old Mill"): the party in the sub-zone is also in the zone above it.
Description ​
Where a zone is, is not stored here: it is painted on the terrain (the zone layer of the Terrain tool), or given by a ZoneVolume placed in the world (a cave under a hill), or it is the default zone of the world (WorldData.default_zone_id). ZoneLookup answers "which zone is this point in" and ZoneTracker watches where the party is. See docs: World > Zones.
Properties ​
int | parent_zone_id | 0 |
Color | color | Color(0.35, 0.7, 0.4) |
float | wetness_scale | 1.0 |
float | snow_scale | 1.0 |
int | sky_config_id | 0 |
int | environment_config_id | 0 |
float | look_blend_seconds | 3.0 |
bool | look_replaces_event | false |
Color | screen_tint | Color(0.0, 0.0, 0.0, 0.0) |
float | screen_vignette | 0.0 |
Color | screen_vignette_color | Color.BLACK |
float | screen_desaturate | 0.0 |
float | screen_grain | 0.0 |
SoundSource | music_source | |
SoundSource | combat_source | |
SoundSource | ambience_source | |
WeatherRule | weather_rule | WeatherRule.INHERIT |
int | weather_config_id | 0 |
int | weather_table_id | 0 |
bool | show_banner | true |
String | banner_subtitle | "": |
Methods ​
SoundSource | get_music_source() |
SoundSource | get_ambience_source() |
SoundSource | get_combat_source() |
bool | has_screen_look() |
ScreenLook | make_screen_look() |
Enumerations ​
enum WeatherRule ​
What the weather of this zone is: Inherit (the weather of the zone above it, then the world's), Clear (no weather here, whatever the world has), Fixed (the weather below) or Table (a weather picked from the table below, changing when its time is up). An event that sets the weather wins over the zones. See docs: World > Zones > Weather
- INHERIT =
0 - CLEAR =
1 - FIXED =
2 - TABLE =
3
Property descriptions ​
int parent_zone_id = 0 ​
The zone this one is a part of (0 = none: a zone of its own). A sub-zone is also in its parent: an event for the parent fires for a party in the sub-zone, and the banner of the parent is not shown again when the party walks from the parent into its own sub-zone
Color color = Color(0.35, 0.7, 0.4) ​
The colour of the zone on the overlay of the terrain editor, the zone map and the palette
float wetness_scale = 1.0 ​
How much of the rain reaches the ground in this zone (0 = none: a cave, under a roof; 1 = as the weather says; up to 2 = more). While the party is in the zone the ground dries or wets towards this. See docs: World > Ground weather
float snow_scale = 1.0 ​
How much of the snow lies on the ground in this zone (0 = none, 1 = as the weather says, up to 2 = more: a mountain top)
int sky_config_id = 0 ​
The sky of this zone: the id of a Sky config (0 = the zone has none of its own: it takes the sky of the zone it is a part of, then the sky of the world). The party sees it blended in over the seconds below
int environment_config_id = 0 ​
The environment of this zone (fog, ambient light, the sun's light, the colour grade ...): the id of an Environment config (0 = none of its own: the parent zone's, then the world's)
float look_blend_seconds = 3.0 ​
Seconds the look of this zone takes to come when the party walks into it (and to go when it walks out into a place with none)
bool look_replaces_event = false ​
An event that sets a sky or an environment wins over the zones. Tick this and the look of this zone replaces such an event look when the party walks in
Color screen_tint = Color(0.0, 0.0, 0.0, 0.0) ​
The screen of this zone: a tint over the picture (its alpha is how strong; 0 = none), dark corners, grey and film grain: a damp green haze in a swamp, a grey wash in a ruin. Laid under the effects and events that change the screen, blended in over the look seconds above. A zone with none of these takes the screen of the zone above
float screen_vignette = 0.0 ​
How dark the corners of the screen are in this zone (0 = not at all)
Color screen_vignette_color = Color.BLACK ​
The colour of the dark corners
float screen_desaturate = 0.0 ​
How grey the picture is in this zone (0 = the colours as they are, 1 = black and white)
float screen_grain = 0.0 ​
How much film grain the picture has in this zone
SoundSource music_source ​
The music of this zone: a track with its options or a Music Album. Empty = the zone above it, then the world. The weather, a shelter and events can play over it
SoundSource combat_source ​
The music of a fight in this zone (a track or a Combat Music Album). Empty = the zone above, then the world. An encounter can override it
SoundSource ambience_source ​
The ambient sound of this zone (wind in a pass, water in a cave): one track with its options. Empty = the zone above, then the world
WeatherRule weather_rule = WeatherRule.INHERIT ​
What the weather of this zone is (see WeatherRule above)
int weather_config_id = 0 ​
The weather of this zone when the rule is Fixed: the id of a Weather config (World Configs > Weather)
int weather_table_id = 0 ​
The table of weathers of this zone when the rule is Table: the id of a Weather table (World Configs > Weather Tables)
bool show_banner = true ​
Show the banner (the name, and the line under it) when the party enters the zone
String banner_subtitle = "": ​
The line under the name on the banner ("Home of the old mill"). Empty = only the name. Reading it gives the translation when the game is played in another language (see Localization)
Method descriptions ​
SoundSource get_music_source() ​
The music of this zone as a source: the music source, else the first track of the old list of tracks (a zone made before sources)
SoundSource get_ambience_source() ​
The ambient sound of this zone as a source (the same way)
SoundSource get_combat_source() ​
The combat music of this zone as a source (null = it says nothing)
bool has_screen_look() ​
Does this zone change the screen (a tint, dark corners, grey or grain)?
ScreenLook make_screen_look() ​
The screen of this zone as a ScreenLook (what CameraLook shows)