20. Start the quest during gameplay
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).
extends "res://scripts/runtime/script_base.gd"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 trueThis 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.
