B4. Add an answer and a question
Run once after the story discovery. Reusing existing IDs is not an overwrite operation.
extends PCAScriptBasefunc 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.
