23. Reveal the archive question after the reward
Give ask_archive the opposite condition: archive_key_given equals true. Before the loan, the menu shows the key request. After the loan, it shows the archive question instead.
| Choice ID | Condition | Destination |
|---|---|---|
| ask_clock | None | clock_reply |
| ask_key | archive_key_given equals false | give_key |
| ask_archive | archive_key_given equals true | archive_reply |
| goodbye | None; Always Allow Repeat on | end |
Figure 18. The key request is gone and the archive question is now available.
The Choice node evaluates availability when the menu is displayed. In this branch, the variable changes while the player is away from the menu, and the explicit return to topics displays the updated menu.
If a background system changes a variable while a menu is already open, do not assume the visible menu redraws merely because the variable changed. The dialogue-editing actions trigger a refresh; otherwise deliberately redisplay the menu at a suitable point.
Always keep an available way out. If every response is hidden or disabled, the runtime ends that branch because there is nothing the player can select.
