Add a sleeve and a longer key
06 / INVENTORY
1. Make the two new items. Under Adventure Database choose Add › Inventory Item. Open the new item’s General tab and enter the first row below. Apply. Choose Add › Inventory Item again for the second row. Keep Enabled on and Stackable off. Leave both out of the starting inventory. A text label works for each item, as it did for the Winding Key.
| Item ID | Name | Where it comes from |
|---|---|---|
| brass_sleeve | Brass Sleeve | Pip gets it from the hatch after the chime. |
| long_key | Long Key | Pip makes it by fitting the two pieces together. |
[1] Item ID is what the script looks up. [2] Name is what Pip sees in inventory.
2. Check the original key’s ID. Open Inventory › Winding Key › General. Part 1 used new_item as its ID. Keep it. If yours differs, substitute your actual key ID for new_item in the recipe on page 9. When menus offer a choice by name, choose Winding Key.
3. Know how to enter the two short scripts. On each of the next two pages, choose Add › GDScript for a fresh record. Give it the Script ID and Name printed on that page. Click inside the code editor, select the starter text, and paste the entire block. Keep its indentation and straight quotation marks. Click Validate, Apply Changes, then Save Project. Leave the event checkboxes clear.
Two jobs, two scripts. The first decides what Pip finds when inspecting the hatch. The second changes the contents of the inventory when the two items touch. The final reveal uses a visual graph you’ll build by dragging wires.
