Skip to content

GroundWeatherCondition ​

Inherits: Condition < Resource

Checks how wet the ground is or how much snow lies on it (what the terrain shows): "the snow is at least half" opens a pass, "the ground is dry" lets a fire be lit. See docs: World > Ground weather.

Properties ​

MeasuremeasureMeasure.SNOW
Condition.CheckLogiccomparison_logicCondition.CheckLogic.GREATER_EQUAL
floatlevel0.5

Methods ​

boolevaluate( _argument: Variant = null )
Stringget_description()
Stringget_function_description()
Stringget_expected_argument_type()
boolis_valid()

Enumerations ​

enum Measure ​

What is measured

  • WETNESS = 0
  • SNOW = 1

Property descriptions ​

Measure measure = Measure.SNOW ​

Wetness or snow

Condition.CheckLogic comparison_logic = Condition.CheckLogic.GREATER_EQUAL ​

How the level is compared with the number

float level = 0.5 ​

The number to compare the level with (0 to 1)

Method descriptions ​

bool evaluate( _argument: Variant = null ) ​

Is the condition met?

String get_description() ​

A short text about what the condition checks.

String get_function_description() ​

The sentence the editor shows for the condition, with {placeholders} for its values.

String get_expected_argument_type() ​

The kind of thing the condition is checked against (an entity, an encounter ...).

bool is_valid() ​

Are the settings of the condition complete?