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

Give the chapter five things to remember

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

01 / BEFORE YOU BUILD

1. Add the variables. Under Adventure Database › Add › Variable, make the five records below. Enter the ID exactly as printed. Choose the value type, enter its starting value, click Apply Changes, then Save Project. Keep Part 4’s lift_stage. The listings use new_character for Pip, nell for Nell, and relay_room for Relay Room. If you renamed an ID, substitute yours.

Source table from Give the chapter five things to remember, page 2
IDType / startWhat changes it
letter_readBoolean / falsePip receives the letter. Nell can repeat its clue afterward.
lamp_readyBoolean / falsePip straightens the lantern contact.
socket_seenBoolean / falsePip examines the regulator’s winding spindle.
pulse_stepNumber / 0The receiver counts correct presses. A mistake resets it.
secret_routeNumber / 01 means bells. 2 means key. Either value finishes the chapter.

2. Make the script records first. Choose Add › PCA Script for each ID below. Use the ID as the name or give it a friendly name. Apply each record. These placeholders let the editor find a script when another script mentions it. Fill each one on the page where its name appears.

Source table from Give the chapter five things to remember, page 2
JobPCA Script IDs
Relay Roomrelay_dress, nell_chat, give_letter, fix_lamp, enter_passage
Corridor and artifactlight_passage, beam_off, check_dial, expose_socket
Receiver and endingopen_decoder, pulse_1, pulse_2, pulse_3, receiver_logic, key_spindle, finish_secret

3. Add the one GDScript. Choose Add › GDScript for pass_letter. PCA Script decides when Nell gives up the letter. This short GDScript handles the smooth slide between the two hands. Both languages read and write the same letter_read value.

How to use a listing. The small heading above each dark block is its Script ID. Replace the starter text with the whole block, keep the straight quotes, validate, apply and save. A global line names a shared value for PCA Script. Its default is used when the value is missing. Keep Part 4’s lift_stage starting value at 0.

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