Skip to content

Change Stat

Changes the value of a Star Bar.

Type ID: ccpacks:change_stat

Fields

Field Type Default Description
stat_bar Identifier ID of the power type that defines the stat bar. Must be a Stat Bar (Power Type) which exists on the player.
change Integer This value will be added to the resource. Range: 0-10.
operation String "add" Determines if the action should add or set the value of the resource. Accepts "add" or "set".

Example

"entity_action": {
    "type": "ccpacks:change_stat",
    "stat_bar": "example_pack:mana_bar",
    "change": 1
}

This action adds 1 to the example_pack:mana_bar Stat Bar (Power Type). (data\namespace\powers\example.json)