EnemiesInRangeHealthCondition ​
Inherits: EntityCondition < Condition < Resource
Checks if minimum number of enemies in range are above/below health threshold Consolidates HealthAbove and HealthBelow conditions with encounter support.
Properties ​
float | range | 10.0 |
int | min_count | 1 |
float | health_threshold_percent | 50.0 |
SearchScope | search_scope | SearchScope.ANY_ENTITY |
bool | health_above | false |
Methods ​
String | get_entity_function_description() |
bool | evaluate_entity( entity: Entity ) |
String | get_entity_description() |
Enumerations ​
enum SearchScope ​
The options of search scope: any entity, encounter only, encounter preferred.
- ANY_ENTITY =
0- Search all entities in range (original behavior) - ENCOUNTER_ONLY =
1- Only search within current encounter - ENCOUNTER_PREFERRED =
2- Prefer encounter entities, fallback to any if encounter empty
Property descriptions ​
float range = 10.0 ​
The distance, from the entity, within which to look
int min_count = 1 ​
How many entities must be found
float health_threshold_percent = 50.0 ​
The health percentage to compare with (0 to 100)
SearchScope search_scope = SearchScope.ANY_ENTITY ​
Where to look: all entities in range, only the current encounter, or the encounter first and everyone in range when it has none
bool health_above = false ​
If true, checks for health ABOVE threshold; if false, checks BELOW
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.