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 ​
float | minimum_duration | 30.0 |
float | maximum_duration | -1.0 # -1 = no maximum |
Methods ​
String | get_entity_function_description() |
bool | evaluate_entity( entity: Entity ) |
String | get_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.