When an NPC receives a message from a player it will search dialogue nodes with a `node-id` matching the currently saved `target-id`. By following the diagram below using an example dialogue you can see how different messages allow you to traverse down and back up the tree.

<details><summary>Adding a new dialogue node</summary>
Within your `<DialougeTree>` you must have `<Dialogue>` tags which follow this format:
**pattern:**
the regular expression used to match the players message with this dialogue node
**node-id:**
the grouping this dialogue node belongs to
**target-node**
the grouping the dialogue will search through after the next message it receives