Change Resource

Entity Action Type

Changes the value of a power that either uses the Resource power type, or has a built-in cooldown.

Type ID: origins:change_resource

Fields

Field Type Default Description
resource Identifier The namespace and ID of the power that uses the Resource (Power Type) or has a built-in cooldown.
change Integer This value will be added to the resource (won't go below min or above max of the Resource (Power Type)).
operation String "add" Determines if the action should add or set the value of the resource. Accepts "add" or "set".

Examples

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

This example will add 1 to the namespace:example (data/namespace/powers/example.json) power that uses the Resource (Power Type).