Skip to reading
PCA Script Programming

unlock_hint()

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

Unlock Hint Topic / Answer | Action ID: UnlockHint

Unlock a numbered answer within an existing hint topic.

Source table from unlock_hint(), page 80
Option key / fieldMeaning and accepted inputDefault
Topic ID topicIdText.Blank
Answer Number answerNumberWhole number.1

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

Code example
unlock_hint({"topicId": "", "answerNumber": 1})

In use. Unlock answer 2 for the archive topic after the player has examined the door. Match the topic ID and answer numbering used by the hint system; an invented ID does not create a complete hint topic.

run_visual_script()#

Run Visual Script | Action ID: RunVisualScript

Run a selected script and wait for that call. Despite its label, the picker can select the supported text-script languages as well as visual graphs.

Source table from unlock_hint(), page 80
Option key / fieldMeaning and accepted inputDefault
Script scriptIdChoose a visual or supported text script.Blank

Timing. Waits for the selected script call.

Code example
run_visual_script({"scriptId": "utility_pca"})

In use. Put the door's inventory check in open_door, then call that script from the door's Use response. Keep the conditional logic in that one place instead of copying it into several event lists.

Page 80 of 357Permalink
Go to page