Skip to reading
GDScript Programming & Godot

StartDialogue()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page

Start Dialogue

Start a Dialogue Designer conversation and wait for that dialogue session to finish.

Source table from StartDialogue(), page 104
Option key / fieldMeaning and inputDefault
Dialogue dialogueIdChoose a Dialogue Designer ID.Blank

Timing. Waits for the dialogue session.

Code example
await StartDialogue({"dialogueId": ""})

In use. On Elias's Talk verb, choose Ask Elias. The dialogue record decides its start node, choices and flow. Do not start the same dialogue again in OnDialogueStarted, which can create nested or repeated conversations.

EndDialogue()#

End Dialogue

End the active dialogue session.

No options in the standard catalog schema.

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await EndDialogue({})

In use. Use it when a scripted event cuts a conversation short. It does not erase the authored dialogue, its choices or the saved read history. Test any actions that were supposed to follow a normal ending.

AddDialogueLine()#

Add Dialogue Line

Insert or update a line node in a runtime dialogue graph, including speaker, text, next node, voice and typewriter options.

Source table from StartDialogue(), page 104
Option key / fieldMeaning and inputDefault
Dialogue dialogueIdChoose a Dialogue Designer ID.Blank
New Node ID nodeIdText.Blank
Page 104 of 378Permalink
Go to page