Scale (Entity Condition Type)

Compares one of the entity's scales against a number.

Compares one of the entity’s scales — the final value, with every power, stored value and parent scale folded in — against a number.

Type ID: apoli:scale

Fields

FieldTypeDefaultDescription
scale_typeScale Typeapoli:baseWhich scale to read.
comparisonComparisonHow to compare.
compare_toFloat or ExpressionWhat to compare against.

Examples

{
    "type": "apoli:scale",
    "scale_type": "apoli:base",
    "comparison": "<",
    "compare_to": 0.5
}

Only let a power run while the holder still fits through a door:

{
    "type": "apoli:scale",
    "scale_type": "apoli:height",
    "comparison": "<=",
    "compare_to": 1
}