Skip to reading
The Dialogue Designer

Appendix B. Script recipes

Edition 0.86.3.4

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

Download PDFView PDF page

Each recipe belongs in its own project GDScript record. The record must be enabled. Run it through a Run Script action, or expose a named function when a dialogue Action should call that function directly.

These examples are deliberately small. They use the same shared actions as the designer. Do not mark every helper Global or subscribe it to events unless you want it to run automatically.

Source table from Appendix B. Script recipes, page 68
RecipeUse
open_archiveStart the conversation and wait for it to finish.
guarded_talkSet the explicit availability flag before opening.
guarded_giveIssue a one-time key reward through an exposed function.
add_new_topicAdd a new answer and a connected menu response at runtime.
remove_topicRemove that particular response later.
reset_topicsClear this conversation’s read history.

Keep script IDs distinct from dialogue IDs. Running the open_archive script and starting the archive_chat dialogue are two different references.

Page 68 of 77Permalink
Go to page