Skip to main content

Action On Shape Ability Use (Power Type)

Fires when the player uses their shape's ability. The action runs with the player as the actor and their current shape as the target.

Type ID: apoli:action_on_shape_ability_use (alias shappoli:action_on_shape_ability_use)

note

This type needs WoodWalkers and doesn't exist without it, so a pack that uses it must depend on the mod.

Fields

FieldTypeDefaultDescription
bientity_actionBi-entity Action TyperequiredRuns when the ability is used.
bientity_conditionBi-entity Condition TypeoptionalOnly fires when this passes.

Example

{
  "type": "apoli:action_on_shape_ability_use",
  "bientity_action": {
    "type": "apoli:actor_action",
    "action": {
      "type": "apoli:change_resource",
      "resource": "mypack:stamina",
      "change": -1
    }
  }
}

Every use of the ability costs a point of the mypack:stamina resource.