Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

CompiledDialog

A machine dialog() compiled, with the tree it came from, and the three moves a conversation makes on it, as Ink’s Continue, ChooseChoiceIndex and canContinue.

Property Type
machine DialogMachine
tree DialogTree

choose(writer, character, index): boolean

Picks the choice at index of the node character’s conversation stands on, from 0. Returns whether it moved.

Parameter Type
writer EntityAuthority
character Entity
index number

boolean


continue(writer, character): boolean

Moves character’s conversation past a node that end()s, to its end. Returns whether it moved.

Parameter Type
writer EntityAuthority
character Entity

boolean


isEnded(character): boolean

Whether character’s conversation is over.

Parameter Type
character Entity

boolean