Visual scripts
On this page
Normal Say actions identify their own speaker. You do not need a separate Set Voice Speaker before every normal line. Use the default-speaker action for direct Play Voice or a voiced general message.
If Wait for Voice is on, the list waits for playback to finish before executing the following step. Put it off when later steps must pause, seek, or overlap the current recording. An immediate Pause Voice after a waiting Play Voice has nothing left to pause.
Disabling lip sync restores the resting appearance. It does not mute or delete the voice recording. Keep audio muting, text display, and mouth motion as deliberate separate choices.
Use the same shared actions as visual nodes. Connect them in execution order and fill in the same character/audio fields. A mouth-related node does not need to replace the rest of your interaction graph.
For example: interaction start, Enable Lip Sync, Character Say, then the puzzle's variable or inventory actions. Keep the voice and its line together so a future edit does not accidentally play one person's audio with another person's portrait.
GDScript example#
Put this inside the entry function supplied by the script editor. Keep that script template's wrapper and parameters. Replace the sample IDs with records in your game.
await SetLipSyncEnabled({
"characterId": "elias", "enabled": true
})
await Say({
"speakerId": "elias",
"portraitId": "model_face",
"text": "Every afternoon, that bell calls the town home.",
"voiceAssetId": "voice_elias_01",
"waitForContinue": true
})The explicit portraitId requests that portrait for this line. For ordinary action-list editing, choose a particular portrait on a Dialogue Designer line when you need that selection exposed in the editor.
PCA Script, BASIC, and Lua#
These examples show direct voice playback. They assume the character mapping and audio track are already prepared. They use the same action/property names; the dictionary syntax and waiting notation differ.
