Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

twine / ScoreTrigger

Interface: ScoreTrigger โ€‹

Defined in: twine/src/core/area.ts:77

Activates an area from a score. Give exactly one of equals or matches.

Latches on until <name>/deactivate by default; latch: false turns it off when the score stops matching.

Properties โ€‹

equals? โ€‹

optional equals?: number

Defined in: twine/src/core/area.ts:82

Activate while the score is exactly this. Mutually exclusive with matches.


kind โ€‹

kind: "score"

Defined in: twine/src/core/area.ts:78


latch? โ€‹

optional latch?: boolean

Defined in: twine/src/core/area.ts:86

Default true. false turns the area off once the score stops matching.


matches? โ€‹

optional matches?: object

Defined in: twine/src/core/area.ts:84

Activate while the score is within this inclusive band; omit a bound to leave it open.

max? โ€‹

optional max?: number

min? โ€‹

optional min?: number


objective โ€‹

objective: string

Defined in: twine/src/core/area.ts:79


target โ€‹

target: string

Defined in: twine/src/core/area.ts:80

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.