Action On Death (Power Type)

Executes an action when the entity that has the power dies.

Executes an action when the entity that has the power dies.

Type ID: apoli:action_on_death

In the context of this power type, the ’target’ entity is the entity that died while the ’actor’ entity is the one that killed it.

Fields

FieldTypeDefaultDescription
bientity_actionBi-entity Action TypeThe action to be executed on either or both the ’actor’ and ’target’ entities.
bientity_conditionBi-entity Condition TypeoptionalIf specified, the specified action will only be executed if this condition is fulfilled by either or both ’actor’ and ’target’ entities.
damage_conditionDamage Condition TypeoptionalIf specified, the specified action will only be executed if this condition is fulfilled by the damage dealt by the ’actor’ entity.

Examples

{
   "type":"apoli:action_on_death",
   "bientity_action":{
      "type":"apoli:target_action",
      "action":{
         "type":"apoli:explode",
         "power":5,
         "destruction_type":"none",
         "damage_self":false
      }
   }
}

This example will make the entity that died explode.