Skip to reading
GDScript Programming & Godot

SetQuestStage()

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

Quest: Set Stage

Move a quest to a chosen stage.

Source table from SetQuestStage(), page 211
Option key / fieldMeaning and inputDefault
Quest questIdChoose a Quest Designer ID.Blank
Stage stageIdChoose a stage in that quest.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SetQuestStage({"questId": "", "stageId": ""})

In use. Advance from Restore Power to Enter the Archive after the lever succeeds. Check whether earlier objectives should be completed before moving on, rather than assuming the stage change supplies all the story bookkeeping.

CompleteObjective()#

Quest: Complete Objective

Complete a named objective, optionally selecting a stage first.

Source table from SetQuestStage(), page 211
Option key / fieldMeaning and inputDefault
Quest questIdChoose a Quest Designer ID.Blank
Stage stageIdChoose a stage in that quest.Blank
Objective objectiveIdChoose an objective in that stage.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await CompleteObjective({"questId": "", "stageId": "", "objectiveId": ""})

In use. Complete power inside the restore stage after the signal turns on. A supplied stage ID is applied before the objective operation, so choose it deliberately.

Page 211 of 378Permalink
Go to page