Skip to reading
GDScript Programming & Godot

CompleteQuest()

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: Complete Quest

Mark the quest completed.

Source table from CompleteQuest(), page 213
Option key / fieldMeaning and inputDefault
Quest questIdChoose a Quest Designer ID.Blank

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

Code example
await CompleteQuest({"questId": ""})

In use. Complete Restore the Signal after the archive has been reached. Award score or items as separate guarded actions. Completing a quest is not automatic proof that a reward has not already been given.

FailQuest()#

Quest: Fail Quest

Mark the quest failed.

Source table from CompleteQuest(), page 213
Option key / fieldMeaning and inputDefault
Quest questIdChoose a Quest Designer ID.Blank

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

Code example
await FailQuest({"questId": ""})

In use. Fail a side quest after its story window closes. Provide a readable journal entry or message explaining the result; the state change alone may not tell the player what happened.

Page 213 of 378Permalink
Go to page