Write clues a player can actually use
08 / BASIC LIBRARY • THIRD PIECE
last_words / BASIC / 3 of 3
SUB Tell(page, level)
DIM a = "Someone waited behind the lift."
DIM b = "Nell kept something."
DIM c = "As Pip, talk to Nell and ask what he left."
IF page = 2 THEN
a = "That passage looks dark."
b = "Check the light beside Nell."
c = "As Pip, use the damaged lantern, then the blue door."
ELSEIF page = 3 THEN
a = "The receiver has a pattern."
b = "Read the counts in the letter."
c = "Press 3, 1, 2. Or inspect the spindle and use the Long Key."
ELSEIF page = 4 THEN
a = "One job remains."
b = "Pip can put the names to rest."
c = "As Pip in the Relay Room, choose Ledger."
END IF
DIM lines = [a, b, c]
AWAIT ShowMessage({"text":lines[level - 1],"duration":4200})
END SUBThe three strings a, b and c run from gentle to explicit. BASIC numbers the first entry in a list as 0. That is why a player on hint level 1 gets lines[0]. The last clue offers both solutions so asking for help never quietly takes one away.
hint_now / PCA SCRIPT
call script last_words function HintCheck it in play. Validate the complete BASIC record. Apply and save it, then put the single line above in the separate hint_now PCA Script. With Nell free and the letter still in her hand, press Hint twice. Save. Take the letter and ask again. The new hint should start gently with the dark passage. Reload. The next hint should again be about getting the letter.
The BASIC editor toolbar. Validate checks the listing. Apply Changes puts the edited version into the project.
