Relative Resource

Entity Condition Type

Compares the value of a power that uses the Modifiable Resource (Power Type), Resource (Power Type) or a power type that has a built-in cooldown (using remaining ticks as the value) over it's current maximum value to the specified relativity.

Field Type Default Description
resource Identifier The namespace and ID of the power that uses the Modifiable Resource (Power Type), Resource (Power Type) or has a built-in cooldown.
comparison Comparison Determines how the relativity value of resource should be compared to relativity.
relativity Float The relativity value at which the relativity of the resource will be compared to.

Examples

"condition": {
    "type": "origins-math:relative_resource",
    "resource": "example:a_simple_resource",
    "comparison": ">=",
    "relativity": 0.50
}

This example will check if the player's example:a_simple_resource resource has a value of at least 50%.