AlliesInRangeWithEffectCondition ​
Inherits: EntityCondition < Condition < Resource
Checks if minimum number of allies in range have/don't have specific effect Now supports encounter-aware searching and inverted logic.
Properties ​
float | range | 10.0 |
int | min_count | 1 |
int | effect_id | 0 |
int | min_stacks | 1 |
SearchScope | search_scope | SearchScope.ANY_ENTITY |
bool | has_effect | true |
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
int effect_id = 0 ​
The effect to look for
int min_stacks = 1 ​
The least stacks of the effect that count
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 has_effect = true ​
If false, checks for entities WITHOUT the effect
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.