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

Let Kit and Pip remember different things

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

06 / BASIC LIBRARY • FIRST PIECE

Open BASIC › last_words and replace the starter text. The dark blocks on pages 7, 8 and 9 form one script. Paste them in that order into this same record, then Validate › Apply / Save Script. Save the project. The other records in this chapter are PCA Script.

last_words / BASIC / 1 of 3

Code example
OPTION PCA3D BASIC 1.0
GLOBAL lift_stage = 0
GLOBAL letter_read = FALSE
GLOBAL lamp_ready = FALSE
GLOBAL secret_route = 0
GLOBAL book_closed = FALSE
GLOBAL hint_page = 0
GLOBAL hint_level = 0
Code example
SUB Recall()
    DIM line = "I still have a job to do here."
    IF ActivePlayer() = "player" THEN
        IF lift_stage >= 1 THEN
            line = "Kit: I felt the breaker catch. Pip had power."
        END IF
    ELSEIF ActivePlayer() = "new_character" THEN
        IF letter_read THEN
            line = "Pip: Nell kept that letter folded in her palm."
        ELSEIF lift_stage = 4 THEN
            line = "Pip: When the shutter lifted, Nell was there."
        END IF
    END IF
    AWAIT ShowMessage({"text":line})
END SUB

PCA gives Kit the First Light ID player and Pip new_character. Recall checks who pressed the button before it picks a line. A character who hasn’t had that experience yet gets a neutral thought. The memories come from milestones the earlier chapters already saved.

recall_now / PCA SCRIPT

Code example
call script last_words function Recall

Place the single line above in the separate recall_now PCA Script. It asks the BASIC library to run Recall. Part 4’s GDScript sets lift_stage and Part 5 sets letter_read. BASIC can read both.

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