Set Resource

Entity Action

Set a resource for an entity.

Type ID: ope:set_resource

Fields

Field Type Default Description
resource Identifier ID of the power type that defines the resource. Must be a resource which exists on the player.
value Integer The resource will be set to this value, it won't go below min or above max of the resource.

Example

"entity_action": {
    "type": "ope:set_resource",
    "resource": "namespace:example",
    "value": 5
}