Skip to main content

Attached To Rope (Entity Condition Type)

Checks whether the entity is at one end of any rope, and optionally how many. With no fields, it checks for any rope at all. A slot only counts ropes with that label, and comparison and compare_to let you test the number, for example whether both whips are out.

Type ID: apoli:attached_to_rope

Fields

FieldTypeDefaultDescription
slotStringoptionalOnly counts ropes with this label. Leave it out to count every rope the entity is an end of.
comparisonComparison">="How the rope count is compared with compare_to.
compare_toInteger1The number the rope count is compared with.

Examples

{
    "type": "apoli:attached_to_rope"
}

This passes while the entity has at least one rope, using the default >= 1.

{
    "type": "apoli:attached_to_rope",
    "comparison": ">=",
    "compare_to": 2
}

This passes once the entity has two or more ropes, which is useful to check that both whips are out before allowing a launch.