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.
Properties
Section titled “Properties”| Property | Type |
|---|---|
machine |
DialogMachine |
tree |
DialogTree |
Methods
Section titled “Methods”choose()
Section titled “choose()”choose(
writer,character,index):boolean
Picks the choice at index of the node character’s conversation
stands on, from 0. Returns whether it moved.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority |
character |
Entity |
index |
number |
Returns
Section titled “Returns”boolean
continue()
Section titled “continue()”continue(
writer,character):boolean
Moves character’s conversation past a node that end()s, to its
end. Returns whether it moved.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority |
character |
Entity |
Returns
Section titled “Returns”boolean
isEnded()
Section titled “isEnded()”isEnded(
character):boolean
Whether character’s conversation is over.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
character |
Entity |
Returns
Section titled “Returns”boolean