Skip to main content

Amount (Damage Condition Type)

Compares the amount of damage with a number.

Type ID: apoli:amount

Fields

FieldTypeDefaultDescription
comparisonComparisonrequiredHow the damage is compared with compare_to.
compare_toFloatrequiredThe number the damage is compared with.

Examples

"damage_condition": {
    "type": "apoli:amount",
    "comparison": "==",
    "compare_to": 4
}

This checks whether the damage dealt or taken is exactly 2 hearts.