Skip to reading
GDScript Programming & Godot

RemoveDialogueChoice()

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

Remove Dialogue Choice

Remove one option identified by its choice ID from a choice node.

Source table from RemoveDialogueChoice(), page 108
Option key / fieldMeaning and inputDefault
Dialogue dialogueIdChoose a Dialogue Designer ID.Blank
Choice Node ID nodeIdChoose a choice node in that dialogue. Custom values are accepted.Blank
Choice ID choiceIdChoose an option ID in that choice node. 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 RemoveDialogueChoice({"dialogueId": "", "nodeId": "", "choiceId": ""})

In use. Remove an introductory question once it no longer makes sense. For a choice that may return later, Set Dialogue Choice Enabled is usually easier to reverse than deleting and recreating it.

Page 108 of 378Permalink
Go to page