Skip to reading
PCA Script Programming

fail_objective()

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: Fail Objective | Action ID: FailObjective

Mark an objective as failed, optionally selecting its stage first.

Source table from fail_objective(), page 208
Option key / fieldMeaning and accepted 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. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

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

In use. Fail a timed optional objective when its timer expires. Keep failure consequences in a separate clear branch so a failed side objective does not accidentally end the whole quest.

reset_objective()#

Quest: Reset Objective | Action ID: ResetObjective

Reset one objective to its unfinished state, optionally selecting its stage first.

Source table from fail_objective(), page 208
Option key / fieldMeaning and accepted 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. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

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

In use. Reset a repeatable practice task. It does not automatically restore consumed items, move characters or undo the rest of the room state.

Page 208 of 357Permalink
Go to page