Skip to reading
The Dialogue Designer

20. Give the key and record the loan

Edition 0.86.3.4

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

Download PDFView illustrations

1. Create the Archive Key item in the Inventory Designer with ID archive_key.

2. On give_key, choose Add Inventory and select Archive Key. Set Count to 1.

3. Turn automatic return off and connect NEXT to mark_key.

4. On mark_key, choose Set Variable. Select archive_key_given and set its value to the Boolean true.

5. Connect mark_key to key_reply, then key_reply back to topics.

Figure 16. Elias acknowledges the loan after the inventory and variable steps have completed.

Add Inventory means the active player’s inventory. Give Inventory lets you choose a particular character. That distinction matters in a game with several playable characters and separate bags.

The story flag means “Elias has already given this key.” It is not exactly the same as “the player is carrying the key right now.” A later puzzle may remove, drop or transfer the item while the loan remains part of the story.

A non-stackable item definition is useful, but it is not a complete one-time reward rule. Prevent repeat rewards through conditions or a guarded script as well.

Page 24 of 77Permalink
Go to page