Skip to reading
The Dialogue Designer

16. Reuse an answer from two menus

Edition 0.86.3.4

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

Download PDFView illustrations

A reusable answer can keep a large conversation easier to maintain. For example, both a general topic menu and a workshop-details submenu might ask where Elias left a key.

Figure 14. Two menus can call one automatically returning answer. The current conversation path determines where it returns.

Source table from 16. Reuse an answer from two menus, page 20
Starting menuChoice destinationAfter answer
menu_aanswerBack to menu_a.
menu_banswerBack to menu_b.

Use explicit connections for the menu-to-menu choices such as Other questions and Back. Leave automatic return on only for the shared one-Line answer.

This works because the runtime tracks the current path. It also recognizes returning to an ancestor through an explicit link, which prevents an ordinary topic loop from adding another copy of the same menu to the path forever.

Do not reuse a reward branch merely because its words are similar. Shared wording is easy; shared state changes need their own ownership and “already done” guards.

Page 20 of 77Permalink
Go to page