Skip to reading
Progress Bars, Hints & Journals

20. Start the quest during gameplay

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

Choose the moment that makes the job known to the player: talking to the Professor, inspecting the broken machine or accepting a task. Add Start Quest to that interaction’s action list and choose Restore the workshop(restore_workshop).

Code example
extends "res://scripts/runtime/script_base.gd"
Code example
func run(_context: Dictionary = {}) -> Variant:
    await StartQuest({"questId": "restore_workshop"})
    await SetQuestHidden({
        "questId": "restore_workshop", "hidden": false
    })
    await SetQuestTracked({
        "questId": "restore_workshop", "tracked": true
    })
    return true

This complete script makes the job active and also sets the visibility/tracking flags used by the built-in journal. For the custom Journal List, Start Quest alone creates the state it needs; the additional flags keep the intended state clear across journal presentations.

Start Quest’s optional Initial Stage selects a stage deliberately. Leave it blank for the normal first-stage start. Repeatedly choosing an initial stage is not a safe way to ask whether a quest has already begun.

Opening the journal should display progress, not start every quest. Put Start Quest on the story interaction. Use Show GUI or toggle-journal on the journal’s Open Button.

Page 33 of 53Permalink
Go to page