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

Write clues a player can actually use

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 illustrations

08 / BASIC LIBRARY • THIRD PIECE

last_words / BASIC / 3 of 3

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

The 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

Code example
call script last_words function Hint

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

Page 9 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