Skip to content

EncounterActiveStateCondition ​

Inherits: EncounterCondition < Condition < Resource

Checks if an encounter is in a specific active state. Uses EncounterCondition targeting to determine which encounter to check.

Properties ​

boolrequired_active_statetrue

Methods ​

boolevaluate_encounter( encounter: EncounterGroup )
Stringget_encounter_description()
Stringget_encounter_function_description()
boolis_valid()
Stringget_expected_argument_type()

Property descriptions ​

Active State Check

bool required_active_state = true ​

Whether the encounter should be active (true) or inactive (false)

Method descriptions ​

bool evaluate_encounter( encounter: EncounterGroup ) ​

Is the condition met for this encounter?

String get_encounter_description() ​

A short text about what the condition checks on the encounter.

String get_encounter_function_description() ​

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

bool is_valid() ​

Are the settings of the condition complete?

String get_expected_argument_type() ​

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