Update NPC Dialog authored by Ktyal Plummer's avatar Ktyal Plummer
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
The dialogue system works based on a tree structure where each node in the tree represents a dialogue option. By giving each node a `pattern`, which is the regular expression the NPC searches for in the message it receives. A `node-id` which allows nodes with the same id to be grouped together. A `target-node` which tells an NPC where to look next after receiving a response. The dialogue system works based on a tree structure where each node in the tree represents a dialogue option. By giving each node a `pattern`, which is the regular expression the NPC searches for in the message it receives. A `node-id` which allows nodes with the same id to be grouped together. A `target-node` which tells an NPC where to look next after receiving a response.
![bestdiagram](uploads/aa59485c5735060ab80cd7613b9dd51c/bestdiagram.png "Dialogue Tree") ![bestdiagram](uploads/aa59485c5735060ab80cd7613b9dd51c/bestdiagram.png "Dialogue Tree")
By follow the messages sent in this diagram you can see how the NPC searches for the pattern in the message (highlighted in red) and where it goes after receiving that message.
By following the messages sent in this diagram you can see how the NPC searches for the pattern in the message (highlighted in red) and where it goes after receiving that message.
**Creation:** **Creation:**
<details><summary>Creating the XML</summary> <details><summary>Creating the XML</summary>
...@@ -51,8 +52,8 @@ Adding the node to the XML: ...@@ -51,8 +52,8 @@ Adding the node to the XML:
</Dialogue> </Dialogue>
</DialougeTree> </DialougeTree>
</NPCInfo> </NPCInfo>
There is no limit to how many nodes you can have within the dialogue tree
``` ```
There is no limit to how many nodes you can have within the dialogue tree
</details> </details>
... ...
......