Skip to content

EncounterEntityCountCondition ​

Inherits: EncounterCondition < Condition < Resource

Checks if an encounter has a specific number of entities alive/dead. Uses EncounterCondition targeting to determine which encounter to check.

Properties ​

Condition.CheckLogiccomparison_logicCondition.CheckLogic.LESS_EQUAL
inttarget_count0
boolcount_dead_entitiestrue

Methods ​

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

Property descriptions ​

Entity Count Check

Condition.CheckLogic comparison_logic = Condition.CheckLogic.LESS_EQUAL ​

Logic for comparing the entity count

int target_count = 0 ​

Target number of entities to compare against

bool count_dead_entities = true ​

Whether to count alive entities (true) or dead entities (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 ...).