Skip to content

CombatDurationCondition ​

Inherits: EncounterCondition < Condition < Resource

Checks if the group has been in combat for a specified duration

Properties ​

Condition.CheckLogiccomparison_logicCondition.CheckLogic.GREATER_EQUAL
floattarget_duration_seconds30.0

Variables ​

floatcombat_start_time0.0

Methods ​

boolevaluate_encounter( encounter: EncounterGroup )
Stringget_encounter_description()
Stringget_encounter_function_description()
voidset_combat_start_time( start_time: float )
voidreset_combat_time()

Property descriptions ​

Condition.CheckLogic comparison_logic = Condition.CheckLogic.GREATER_EQUAL ​

How the time in combat is compared with the target duration

float target_duration_seconds = 30.0 ​

The time in combat to compare with, in seconds

Variable descriptions ​

float combat_start_time = 0.0 ​

Track when combat started (set by Encounter)

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.

void set_combat_start_time( start_time: float ) ​

Called by Encounter when group enters combat

void reset_combat_time() ​

Reset combat timing