Skip to reading
GDScript Programming & Godot

ResetQuest()

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

Reset the quest state through the quest manager.

Source table from ResetQuest(), page 214
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 ResetQuest({"questId": ""})

In use. Restart a repeatable challenge. Reconcile its room state, inventory and timers as well; resetting the journal state does not rebuild the whole puzzle.

SetQuestHidden()#

Quest: Hide / Unhide

Set a quest's hidden state.

Source table from ResetQuest(), page 214
Option key / fieldMeaning and inputDefault
Quest questIdChoose a Quest Designer ID.Blank
Hidden hiddenWhether the quest or player visual should be hidden for this action.true

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

Code example
await SetQuestHidden({"questId": "", "hidden": true})

In use. Reveal a secret quest once its first clue is found. Hidden controls journal visibility policy, rather than completing or deleting the quest.

Page 214 of 378Permalink
Go to page