EntitiesInRangeWithEffectCondition ​
Inherits: EntityCondition < Condition < Resource
Checks if minimum number of entities in range have/don't have specific effect
Properties ​
float | range | 10.0 |
int | min_count | 1 |
int | effect_id | 0 |
int | min_stacks | 1 |
EntityType | entity_type | EntityType.NPCS |
bool | has_effect | true |
Methods ​
String | get_entity_function_description() |
bool | evaluate_entity( entity: Entity ) |
String | get_entity_description() |
Enumerations ​
enum EntityType ​
The options of entity type: npcs, players, any.
- NPCS =
0- Only NPCs - PLAYERS =
1- Only players - ANY =
2- Any entity type
Property descriptions ​
float range = 10.0 ​
Maximum range to search for entities
int min_count = 1 ​
Minimum count required
int effect_id = 0 ​
Effect ID to check for
int min_stacks = 1 ​
Minimum stacks required
EntityType entity_type = EntityType.NPCS ​
Type of entities to search for
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.