Skip to reading
GDScript Programming & Godot

SetDialogueChoiceEnabled()

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

Enable / Disable Dialogue Choice

Enable or disable an existing choice without removing its record.

Source table from SetDialogueChoiceEnabled(), page 109
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
Enabled enabledExplicit on/off state for the feature or response.true

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

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

In use. Enable the archive question after examining the door. Select the exact choice node and choice ID. Its visible/disabled presentation also depends on the dialogue read and choice-display settings.

Page 109 of 378Permalink
Go to page