What it does
dialogue.start takes a list and onEnd. onEnd is optional.
Signature
dialogue.start([{speaker, text, choices?}], onEnd?)Arguments
[{speaker, text, choices?}]onEndoptional
Example · generated
function start() { dialogue.start([{ speaker: 1, text: 'Hello', choices?: 1 }]);}dialogue.start is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.