Skip to reading
The Dialogue Designer

15. Chain several nodes with explicit flow

Edition 0.86.3.4

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

Download PDFView illustrations

Suppose borrowing the key requires three steps: give the item, mark the story flag and show Elias’s reply. If every node returns automatically, the chain will not run as intended.

Source table from 15. Chain several nodes with explicit flow, page 19
NodeAction / lineNEXTAutomatic return
give_keyAdd Inventory: archive_key, 1mark_keyOff
mark_keySet Variable: archive_key_given = truekey_replyOff
key_replyHere you are. Bring it back…topicsOff

Figure 13. The first action follows explicit NEXT flow to the flag-setting action.

The final Line explicitly returns to topics. That makes the whole sequence unambiguous. An automatic return on the final Line would return to mark_key, its immediate caller, rather than skipping back to the menu.

Automatic return is ideal for a single called answer. For a sequence of lines or actions, turn it off through the sequence and connect the intended final destination explicitly.

Page 19 of 77Permalink
Go to page