Skip to content

EnemiesInRangeWithEffectCondition ​

Inherits: EntityCondition < Condition < Resource

Checks if minimum number of enemies in range have/don't have specific effect Now supports encounter-aware searching and inverted logic.

Properties ​

floatrange10.0
intmin_count1
inteffect_id0
intmin_stacks1
SearchScopesearch_scopeSearchScope.ANY_ENTITY
boolhas_effecttrue

Methods ​

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