Skip to content

EntityHasTagCondition ​

Inherits: EntityCondition < Condition < Resource

Checks the type tags of an entity ("Undead", "Beast" ...). With the target kind "opponent" on a stat effect this is the condition behind "+30 % damage against Undead". See docs/systems/entity-stats.md, section 24.3.

Properties ​

Array[int]tag_ids[]
boolrequire_allfalse
boolinvertfalse

Methods ​

boolevaluate_entity( entity: Entity )
Stringget_entity_description()
Stringget_entity_function_description()
boolis_valid()

Property descriptions ​

Array[int] tag_ids = [] ​

The tags to look for (EntityTagDefinition ids)

bool require_all = false ​

True: the entity must have every tag. False: any one of them is enough

bool invert = false ​

True: the condition is met when the entity has NONE of the tags (not undead)

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.

bool is_valid() ​

Are the settings of the condition complete?