Appendix B. Script recipes
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.
| Recipe | Use |
|---|---|
| open_archive | Start the conversation and wait for it to finish. |
| guarded_talk | Set the explicit availability flag before opening. |
| guarded_give | Issue a one-time key reward through an exposed function. |
| add_new_topic | Add a new answer and a connected menu response at runtime. |
| remove_topic | Remove that particular response later. |
| reset_topics | Clear 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.
