Offer another hint only when asked
07 / BASIC LIBRARY • SECOND PIECE
Append this block immediately after the first END SUB. The first press gives a nudge, the second points to the relevant thing, and the third gives the solution. A fourth press repeats the solution. Advancing the story gives the next puzzle a fresh first hint.
last_words / BASIC / 2 of 3
SUB Hint()
IF book_closed THEN
AWAIT ShowMessage({"text":"The names are safe. The ledger is closed."})
RETURN
END IF
IF lift_stage < 4 THEN
AWAIT ShowMessage({"text":"Follow the current objective in your journal."})
RETURN
END IF
DIM page = 1
IF letter_read THEN
page = 2
END IF
IF lamp_ready THEN
page = 3
END IF
IF secret_route <> 0 THEN
page = 4
END IF
IF page <> hint_page THEN
hint_page = page
hint_level = 0
END IF
IF hint_level < 3 THEN
hint_level += 1
END IF
AWAIT Tell(page, hint_level)
END SUBAt the end of this block, Tell(page, hint_level) asks for two numbers. For example, page 3 and level 2 means “give the second clue for the receiver.” The next page supplies the words.
