Skip to main content

Story Nodes

Story Node
Story Node

Story nodes are useful for writing out branching storylines in the node editor. They provide a single large text area for writing anything you want.

You can also use story nodes to implement your own logic since they don't have an impact on the dialogue display or flow by default. If you want to implement your own logic for handling story nodes, you implement your own DialogueListener and override the OnStory() method:

...
//Extend the DialogueListener class (which is also a MonoBehaviour)
public class MyStoryHandler extends DialogueListener
{
//Override the OnStory() method
public override void OnStory(string storyText)
{
//Perform custom logic here.
}
}
...

Additionally, you can make Dialogue Displays pause whenever a Story node is encountered by setting the "Pause on Story" setting to 'true'. If you do this, you will need to call Continue() on the Dialogue Controller whenever you want the dialogue to progress past the Story node.

Each story node has a dialogue flow input and output.