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.CheckLogic | comparison_logic | Condition.CheckLogic.LESS_EQUAL |
int | target_count | 0 |
bool | count_dead_entities | true |
Methods ​
bool | evaluate_encounter( encounter: EncounterGroup ) |
String | get_encounter_description() |
String | get_encounter_function_description() |
bool | is_valid() |
String | get_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 ...).