Skip to reading
The Dialogue Designer

B4. Add an answer and a question

Edition 0.86.3.4

Build branching conversations with choices, conditions, actions, timed responses, voices, portraits and custom windows.

Download PDFView PDF page

Run once after the story discovery. Reusing existing IDs is not an overwrite operation.

Code example
extends PCAScriptBase
Code example
func run() -> void:
    await AddDialogueLine({
        "dialogueId":"archive_chat", "nodeId":"lantern_reply",
        "speakerId":"elias",
        "text":"The lantern is by the workshop door.",
        "returnToPrevious":true
    })
    await AddDialogueChoice({
        "dialogueId":"archive_chat", "nodeId":"topics",
        "choiceId":"ask_lantern",
        "text":"Where is the lantern?", "next":"lantern_reply"
    })

Use your actual dialogue, node, Choice, item and variable IDs. Save the authored script before testing it.

Page 71 of 77Permalink
Go to page