Skip to reading
GDScript Programming & Godot

AddDialogueChoiceNode()

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

Add Dialogue Choice Node

Create a choice node in an existing dialogue.

Source table from AddDialogueChoiceNode(), page 106
Option key / fieldMeaning and inputDefault
Dialogue dialogueIdChoose a Dialogue Designer ID.Blank
New Node ID nodeIdText.Blank

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

Code example
await AddDialogueChoiceNode({"dialogueId": "", "nodeId": ""})

In use. Create extra_topics, then add choices to that node with Add Dialogue Choice. Creating the choice node alone does not make the player visit it: connect an existing node to it or otherwise change the graph flow.

RemoveDialogueNode()#

Remove Dialogue Node

Remove a node from the runtime dialogue graph.

Source table from AddDialogueChoiceNode(), page 106
Option key / fieldMeaning and inputDefault
Dialogue dialogueIdChoose a Dialogue Designer ID.Blank
Dialogue Node ID nodeIdChoose a node in that dialogue. Custom values are accepted.Blank

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

Code example
await RemoveDialogueNode({"dialogueId": "", "nodeId": ""})

In use. Remove a temporary topic after its story purpose is finished. Check every Next link and choice that points to it; removing a destination can leave a conversation with nowhere useful to go.

AddDialogueChoice()#

Add Dialogue Choice

Add or update an option inside a choice node.

Page 106 of 378Permalink
Go to page