Change Resource

Entity Action.

Changes the value of a Resource (Power Type).

Type ID: origins:change_resource

Fields

Field Type Default Description
resource String ID of the power type that defines the resource. Must be a Resource (Power Type) which exists on the player.
change Integer This value will be added to the resource (won't go below min or above max of the Resource Resource (Power Type)).

Example

"entity_action": {
    "type": "origins:change_resource",
    "resource": "namespace:example",
    "change": 1
}

This action adds 1 to the namespace:example resource power. (data\namespace\powers\example.json)