Skip to reading
First Light, Part 5: The Clockmaker’s Secret

Listen for three, then one, then two

Edition 0.86.3.4

Part 5 of the First Light course. Add timed choices, object handoffs, an attached lantern, a pointer flashlight, a 3D inspection GUI, alternative puzzle solutions and speech presentation.

Download PDFView PDF page

14 / THE BELL ROUTE

1. Fill in receiver_logic. The function remembers how many correct presses Pip has made. An incorrect press drops the count to zero. A correct third press hides the panel and sends route 1 to the ending.

receiver_logic / PCA SCRIPT

Code example
global pulse_step = 0
global secret_route = 0
Code example
function press(n)
    if secret_route != 0
        return
    end
    if pulse_step == 0 and n == 3
        set pulse_step to 1
        show message "First contact."
    else if pulse_step == 1 and n == 1
        set pulse_step to 2
        show message "Second contact."
    else if pulse_step == 2 and n == 2
        hide gui pulse_panel
        call script finish_secret function reveal with 1
    else
        set pulse_step to 0
        show message "The needle drops. Start with the first bell again."
    end
end

2. Try a wrong answer on purpose. Press 3, then 2. The needle should drop. Now press 3, 1, 2. The last click should close the panel. The next page connects both solutions to the ending.

Source table from Listen for three, then one, then two, page 16
What Pip pressesWhat the receiver remembers
3First contact. pulse_step changes from 0 to 1.
1, after the 3Second contact. pulse_step changes from 1 to 2.
2, after 3 and 1The receiver opens. finish_secret receives route number 1.
Page 16 of 20Permalink
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