Documentation

Learn how to use NodeCanvas

Download PDF Version

Dialogue Tree Nodes Reference

Say

The Say node will simply make the selected actor say a statement. The text in the statement can be made dynamic by using variable names in square bracket “[” and “]” (e.g. “[myVarName]”), which will be replaced with the variable value to string in runtime.

Task Action

The Task Action node will execute an Action Tasks assigned and the selected Actor is used for the Action.

Task Condition

The Task Condition node will evaluate a Condition Tasks assigned and continue with either the left or the right connected child when the condition is True or False respectively. As such the Task Condition node can have  up to two children nodes. The selected Actor is used for the condition check.

Multiple Task Condition

The Multiple Task Condition node is similar to the Task Condition node, but can have any number of connected chidlren. All connected children connections can be assigned a Condition Task and the first  one (from left to right) that evaluates to True will execute. 

Multiple Choice

The Multiple Choice node will prompt any number of choices in the UI for the player to select. Each choice can also have an optional Condition Task assigned. A choice is shown only if its condition evaluates to True, which is checked only at the time the Multiple Choice node is executed. There is optionally a parameter to allow a specific time for the player to choose a response. If the time runs out, the first available response is selected.

Probability Selector

The Probability Selector will select a child to execute at random based on the weights provided for each child. An optional Condition Task can also be set per child, to exclude it altogether in case the condition evaluates to false.

Jump

The Jump node will simply continue with the selected node that you linked to in its inspector. This node is there to help you with the dialogue tree organization.

Finish

The Finish node will finish the Dialogue Tree. Please note that a Dialogue Tree will eitherway finish in Success on its own if any of its nodes is finished and has nowhere else to go (e.g. no further connections). However if you want to finish the Dialogue Tree in Failure, this node is required.

Sub Dialogue Tree

The Sub Dialogue Tree node can hold an entire another Dialogue Tree. When the Sub Dialogue assigned is finished, the Sub Dialogue Tree node will continue either with the “Success” connection or the “Failure” connection (if any of those exist), depending on how the Sub Dialogue finished (see the Finish node above).

Yes No Suggest edit
2 of 2 users found this section helpful
Suggest Edit