dialogue
8 public commands in this category.
add_dialogue_node
Add a node to a dialogue tree. Types: text, choice, condition, action, end
Scope:
scene:write. Token cost: 0.- nodeType string (required)
- Node type
- treeId string (required)
- Dialogue tree ID
- connectFromNodeId string (optional)
- Connect from this node (sets its next field)
- speaker string (optional)
- Speaker name (for text nodes)
- text string (optional)
- Dialogue text
create_dialogue_tree
Create a new dialogue tree with an initial text node
Scope:
scene:write. Token cost: 0.- name string (required)
- Tree name
- startNodeText string (optional)
- Initial text node content (optional)
export_dialogue_tree
Export a dialogue tree as JSON string
Scope:
scene:read. Token cost: 0.- treeId string (required)
- Tree ID to export
get_dialogue_tree
Get full dialogue tree data including all nodes
Scope:
scene:read. Token cost: 0.- treeId string (required)
- Dialogue tree ID
import_dialogue_tree
Import a dialogue tree from JSON string
Scope:
scene:write. Token cost: 0.- jsonData string (required)
- JSON string of dialogue tree data
remove_dialogue_tree
Delete a dialogue tree
Scope:
scene:write. Token cost: 0.- treeId string (required)
- Tree ID to delete
set_dialogue_choice
Add or update a choice in a choice node
Scope:
scene:write. Token cost: 0.- choiceText string (required)
- Choice display text
- nodeId string (required)
- Choice node ID
- treeId string (required)
- Dialogue tree ID
- nextNodeId string (optional)
- Node to go to when chosen
set_dialogue_node_voice
Assign a voice audio asset to a dialogue text node
Scope:
scene:write. Token cost: 0.- nodeId string (required)
- Text node ID
- treeId string (required)
- Dialogue tree ID
- voiceAssetId string (required)
- Audio asset ID for voice