Listen for three, then one, then two
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
global pulse_step = 0
global secret_route = 0function 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
end2. 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.
| What Pip presses | What the receiver remembers |
|---|---|
| 3 | First contact. pulse_step changes from 0 to 1. |
| 1, after the 3 | Second contact. pulse_step changes from 1 to 2. |
| 2, after 3 and 1 | The receiver opens. finish_secret receives route number 1. |
