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

Let Pip inspect the hatch

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

07 / THE DISCOVERY

1. Create the inspection script. Use the GDScript steps on page 7. Enter inspect_hatch for Script ID and Inspect the Hatch for Name. Paste this block, validate, apply and save.

Code example
func run():
Code example
    if not IfVariable("game_completed", true):
Code example
        await ShowMessage({"text": "A service hatch. The latch is still."})
Code example
        return
Code example
    if QuestState("behind_wall") == "inactive":
Code example
        await StartQuest({"questId": "behind_wall"})
Code example
        await SetQuestHidden({"questId": "behind_wall", "hidden": false})
Code example
        await SetQuestTracked({"questId": "behind_wall", "tracked": true})
Code example
        await AddInventory({"itemId": "brass_sleeve"})
Code example
        await ShowMessage({"text": "A brass sleeve slips out. It fits over the winding key."})
Code example
        return
Code example
    if HasInventory("long_key"):
Code example
        await ShowMessage({"text": "The long key can reach this latch."})
Code example
    else:
Code example
        await ShowMessage({"text": "Fit the brass sleeve over the winding key."})

Follow one click. Before the chime, the first return ends the click with a hint. After the chime, an inactive quest starts, appears in the journal and awards one sleeve. The next click finds an active quest, so it gives a hint instead of another sleeve.

2. Attach it to an ordinary click. Open Scenes › Archive. Select Service Hatch in the lower Scene Objects list. In Verb Actions, set Default Verb to Use. Under Use Verb — Step 1 choose the action labeled Run Visual Script or Run Script. In Script, select Inspect the Hatch. Apply and save. This selector also accepts GDScripts.

[1] Set the action. [2] Select Inspect the Hatch for that action.

Try this much. Start fresh, take the round switch’s key as Kit, and Tab to Pip. If an item is selected, click Walk on the bottom bar to clear it. Then click the hatch. Wind the clock with the key and click the hatch normally again. Press I for Brass Sleeve and J for Behind the Wall.

Page 8 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