Skip to reading
PCA Script Programming

complete_quest()

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 | Action ID: CompleteQuest

Mark the quest completed.

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

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
complete_quest({"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.

fail_quest()#

Quest: Fail Quest | Action ID: FailQuest

Mark the quest failed.

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

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
fail_quest({"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 209 of 357Permalink
Go to page