Power (Entity Condition Type)

Checks whether the entity has a specified power. Mostly used for Origin conditions in layers

Checks whether the entity has a specified power. Mostly used for Origin conditions in layers

Type ID: apoli:power

!!! caution

Make sure to use the apoli:living to check if the entity is a “living entity”, otherwise, the game will crash since only living entities can have powers.

Fields

FieldTypeDefaultDescription
powerIdentifierThe namespace and ID of the power the entity needs to have to pass the check.
sourceIdentifieroptionalIf specified, the condition will check if the power is from the specified power source.

Examples

"condition": {
    "type": "apoli:power",
    "power": "origins:damage_from_potions"
}

This example will check if the player has the origins:damage_from_potions power in its origin.