Skip to reading
First Light, Part 3: Behind the Wall

Add a sleeve and a longer key

Edition 0.86.3.4

Part 3 of the First Light course. Add the Relay Room, combine a key and sleeve, create a staged quest, use visual scripting for the typewriter and check cutscene-skip behavior.

Download PDFView illustrations

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.

Source table from Add a sleeve and a longer key, page 7
Item IDNameWhere it comes from
brass_sleeveBrass SleevePip gets it from the hatch after the chime.
long_keyLong KeyPip 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.

Page 7 of 13Permalink
Go to page

Continue your 3D adventure

  1. Part 1First Light, Part 1: Your First 3D Adventure
  2. Part 2First Light, Part 2: Three Knocks
  3. Part 3First Light, Part 3: Behind the Wall
  4. Part 4First Light, Part 4: The Message in the Machine
  5. Part 5First Light, Part 5: The Clockmaker’s Secret
  6. Part 6First Light, Part 6: The Final Hour