Skip to reading
First Light, Part 2: Three Knocks

Run the script when the key fits

Edition 0.86.3.4

Part 2 of the First Light course. Import Kit and Pip’s models, assign idle and walk clips, add a one-time clock response, check player saves and run a compiled desktop build.

Download PDFView illustrations

06 / HOOK IT UP

1. Open the existing rule. Select Scenes › Archive in the upper database. In the lower Scene Objects list, select the placed Clock. In the Inspector, open Inventory Actions. Look for Inventory Interaction 1. Its allowed item should still be Winding Key or its ID, new_item.

2. Replace the first action. In that same rule, open the action menu under Result Action — Step 1. Change Cutscene: Start to the script-running action. The field can read Run Visual Script or Run Script. In the Script selector, choose Wind the Clock (wind_clock). Keep one result action. The script now decides when the cutscene plays.

[1] Keep the winding key as the allowed item. [2] Run the script. [3] Choose Wind the Clock.

3. Update what an ordinary click says. Click Apply Changes before switching tabs. Under Verb Actions › Use Verb — Step 1, keep Show Message and change the text to A brass keyhole sits just below the clock face. Apply and save. That description still makes sense after the clock has been wound.

Listen for the difference. In play, have Kit collect the key and Tab to Pip. Press I, select Winding Key, close inventory if needed, and click the clock. After the chime comes the line about three knocks. Select the key again and click the clock a second time. This time there should be one line and a still camera.

The first visit ends with a new clue. The original three-second cutscene still does the camera work.

Page 7 of 9Permalink
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