Skip to reading
PCA Script Programming

add_dialogue_choice_node()

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
Source table from add_dialogue_choice_node(), page 94
Option key / fieldMeaning and accepted inputDefault
Typing Speed (characters/second) typewriterSpeedText reveal rate in characters per second. Range: 1.0 to 240.0.30.0
Typing Sound typewriterSoundChoose: default, none, custom."default"
Typing Sound Asset typewriterSoundAssetIdThe imported audio used when the typing sound is custom. May be blank.Blank

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

Code example
add_dialogue_line({"dialogueId": "", "nodeId": "", "speakerId": "player"})

In use. Add an answer node named signal_answer, then point a choice at it. Use a unique stable node ID. Return to previous node is enabled by default, so check that behavior before also relying on a fixed Next link.

Typing sound values: default, none or custom. Custom uses typewriterSoundAssetId. Speed is characters per second.

Add Dialogue Choice Node | Action ID: AddDialogueChoiceNode

Create a choice node in an existing dialogue.

Source table from add_dialogue_choice_node(), page 94
Option key / fieldMeaning and accepted inputDefault
Dialogue dialogueIdChoose a Dialogue Designer ID.Blank
New Node ID nodeIdText.Blank

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

Code example
add_dialogue_choice_node({"dialogueId": "", "nodeId": ""})

In use. Create extra_topics, then add choices to that node with Add Dialogue Choice. Creating the choice node alone does not make the player visit it: connect an existing node to it or otherwise change the graph flow.

Page 94 of 357Permalink
Go to page