HasEffectCondition ​
Inherits: EntityCondition < Condition < Resource
Checks if the entity or target has a specific effect active. Consolidates HasEffect and TargetHasEffect conditions.
Properties ​
int | effect_id | 0 |
int | min_stacks | 1 |
int | max_stacks | -1 # -1 = no max limit |
bool | has_effect | true |
Methods ​
bool | evaluate_entity( entity: Entity ) |
String | get_entity_description() |
String | get_entity_function_description() |
Property descriptions ​
int effect_id = 0 ​
The effect to look for
int min_stacks = 1 ​
The least stacks of the effect that count
int max_stacks = -1 # -1 = no max limit ​
The most stacks of the effect that count (-1 = no limit)
bool has_effect = true ​
If false, checks for entities WITHOUT the effect
Method descriptions ​
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.
String get_entity_function_description() ​
The sentence the editor shows for the condition, with {placeholders} for its values.