Give the chapter five things to remember
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.
| ID | Type / start | What changes it |
|---|---|---|
| letter_read | Boolean / false | Pip receives the letter. Nell can repeat its clue afterward. |
| lamp_ready | Boolean / false | Pip straightens the lantern contact. |
| socket_seen | Boolean / false | Pip examines the regulator’s winding spindle. |
| pulse_step | Number / 0 | The receiver counts correct presses. A mistake resets it. |
| secret_route | Number / 0 | 1 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.
| Job | PCA Script IDs |
|---|---|
| Relay Room | relay_dress, nell_chat, give_letter, fix_lamp, enter_passage |
| Corridor and artifact | light_passage, beam_off, check_dial, expose_socket |
| Receiver and ending | open_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.
