Skip to content

EncounterDurationCondition ​

Inherits: EntityCondition < Condition < Resource

Checks if the current encounter has been running for a specific duration. Useful for phase transitions or time-based AI behavior.

Properties ​

floatminimum_duration30.0
floatmaximum_duration-1.0 # -1 = no maximum

Methods ​

Stringget_entity_function_description()
boolevaluate_entity( entity: Entity )
Stringget_entity_description()

Property descriptions ​

float minimum_duration = 30.0 ​

The encounter must have lasted at least this many seconds

float maximum_duration = -1.0 # -1 = no maximum ​

The encounter must have lasted at most this many seconds (-1 = no maximum)

Method descriptions ​

String get_entity_function_description() ​

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

bool evaluate_entity( entity: Entity ) ​

Is the condition met for this entity?

String get_entity_description() ​

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