Skip to content

SetGroundWeatherAction ​

Inherits: EventAction < Resource

Changes how the terrain looks in the weather: how wet the ground is, how much snow lies on it, and the tint of the ground (a season). The levels can be set once (the ground then follows the weather again from there), or held until another action releases them: a quest turns the valley to deep winter and keeps it so. See docs: World > Ground weather.

Properties ​

OperationoperationOperation.SET
boolchange_wetnesstrue
floatwetness0.0
boolchange_snowfalse
floatsnow1.0
floatfade_seconds0.0
boolchange_tintfalse
ColortintColor(1.0, 0.75, 0.45)
floattint_strength0.5

Methods ​

Stringget_display_name()
Stringget_function_description()

Enumerations ​

enum Operation ​

What the action does with the levels

  • SET = 0
  • HOLD = 1
  • RELEASE = 2

Property descriptions ​

Operation operation = Operation.SET ​

Set the levels now (the ground follows the weather again from there), hold them until released, or let the weather decide again

bool change_wetness = true ​

Change how wet the ground is

float wetness = 0.0 ​

How wet the ground is (0 dry, 1 soaked)

bool change_snow = false ​

Change how much snow lies on the ground

float snow = 1.0 ​

How much snow lies on the ground (0 none, 1 covered)

float fade_seconds = 0.0 ​

Seconds the change takes (0 = at once)

Tint

bool change_tint = false ​

Change the tint of the ground (a season)

Color tint = Color(1.0, 0.75, 0.45) ​

The colour the ground is tinted with (autumn orange, a withered grey)

float tint_strength = 0.5 ​

How much of the tint shows (0 = the ground as painted)

Method descriptions ​

String get_display_name() ​

Return the display name of this Action

String get_function_description() ​

Return a description of this action with parameter placeholders