Skip to reading
First Light, Part 6: The Final Hour

Offer another hint only when asked

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

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

Code example
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 SUB

At 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.

Page 8 of 17Permalink
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