15. Chain several nodes with explicit flow
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.
| Node | Action / line | NEXT | Automatic return |
|---|---|---|---|
| give_key | Add Inventory: archive_key, 1 | mark_key | Off |
| mark_key | Set Variable: archive_key_given = true | key_reply | Off |
| key_reply | Here you are. Bring it back… | topics | Off |
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.
