Skip to content

Check Stat

Checks the value of a Star Bar.

Type ID: ccpacks:check_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.
comparison Comparison "==" How the value of the power that will be evaluated should be compared to the specified value.
compare_to Integer 0 The value to compare the value of the power that will be evaluated to.

Example

"condition": {
    "type": "ccpacks:check_stat",
    "stat_bar": "example_pack:mana_bar",
    "comparison": ">",
    "compare_to": 0
}

This condition checks to see if example_pack:mana_bar Stat Bar has a value greater than 0. (data\namespace\powers\example.json)