Skip to content

HasEffectCondition ​

Inherits: EntityCondition < Condition < Resource

Checks if the entity or target has a specific effect active. Consolidates HasEffect and TargetHasEffect conditions.

Properties ​

inteffect_id0
intmin_stacks1
intmax_stacks-1 # -1 = no max limit
boolhas_effecttrue

Methods ​

boolevaluate_entity( entity: Entity )
Stringget_entity_description()
Stringget_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.