Skip to content

EnemiesInRangeCondition ​

Inherits: EntityCondition < Condition < Resource

Checks if a minimum number of enemies are within a specified range.

Properties ​

floatrange10.0
intmin_count1
SearchScopesearch_scopeSearchScope.ANY_ENTITY
boolin_rangetrue

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

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 in_range = true ​

If true, checks for health ABOVE threshold; if false, checks BELOW

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.