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

twine / PhaseOpts

Interface: PhaseOpts โ€‹

Defined in: twine/src/boss/builder.ts:43

One stage of the fight.

Properties โ€‹

at? โ€‹

optional at?: number

Defined in: twine/src/boss/builder.ts:45

Health percentage at or below which this phase starts. Omit on the first phase.


bar? โ€‹

optional bar?: BarStyle

Defined in: twine/src/boss/builder.ts:47

Re-style the bar on entering this phase (a new name, a new colour, or both).


onEnter? โ€‹

optional onEnter?: BossBody

Defined in: twine/src/boss/builder.ts:49

Runs once on entering this phase. @s is the boss.


onExit? โ€‹

optional onExit?: BossBody

Defined in: twine/src/boss/builder.ts:53

Runs once on leaving this phase. @s is the boss.


onTick? โ€‹

optional onTick?: BossBody

Defined in: twine/src/boss/builder.ts:51

Runs every poll while in this phase. @s is the boss.

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