Skip to content

EntitiesInRangeWithEffectCondition ​

Inherits: EntityCondition < Condition < Resource

Checks if minimum number of entities in range have/don't have specific effect

Properties ​

floatrange10.0
intmin_count1
inteffect_id0
intmin_stacks1
EntityTypeentity_typeEntityType.NPCS
boolhas_effecttrue

Methods ​

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