From 0eb667864d201c383f86e7f4bf5e0477906c5ab8 Mon Sep 17 00:00:00 2001 From: TerrificTrifid <99054745+TerrificTrifid@users.noreply.github.com> Date: Tue, 12 Apr 2022 17:27:25 -0500 Subject: [PATCH] Added to Dialogue schema (#84) * Update dialogue_schema.xsd with better condition elements Improved support for the condition system, plus some other tweaks * Update dialogue_schema.xsd --- NewHorizons/dialogue_schema.xsd | 102 +++++++++++++++++++++++++------- 1 file changed, 79 insertions(+), 23 deletions(-) diff --git a/NewHorizons/dialogue_schema.xsd b/NewHorizons/dialogue_schema.xsd index 626b0751..8297eb22 100644 --- a/NewHorizons/dialogue_schema.xsd +++ b/NewHorizons/dialogue_schema.xsd @@ -8,7 +8,7 @@ - The name of the dialogue tree + The name of the character, used for the interaction prompt. Set to "SIGN" for the prompt "Read", or "RECORDING" for "Play Recording" @@ -36,14 +36,7 @@ - The condition that needs to be met in order to get to this node - - - - - - - A ship log fact that must be revealed in order to get to this node + The condition that needs to be met in order for the dialogue to begin at this node. There must be one node that uses "DEFAULT" @@ -54,17 +47,45 @@ - - - - Facts to reveal when the player sees this dialogue node - - - - A list of options to show to the player once the character is one talking + A list of options to show to the player once the character is done talking + + + + + + + Facts to reveal when the player goes through this dialogue node + + + + + + + Set a new condition that will only last for the current loop + + + + + + + Set a new persistent condition that will last indefinitely in the current save, unless cancelled or deleted + + + + + + + A ship log fact that must be revealed in order to proceed to the DialogueTarget + + + + + + + The name of the DialogueNode to go to after this node. Mutually exclusive with DialogueOptionsList here @@ -113,17 +134,38 @@ - + - Require a prior condition to be met to show this option + Require a persistent condition to be met to show this option - + - Hide this option if a condition has been met + Hide this option if a persistent condition has been met + + + + + + + Require a (single-loop) condition to be met to show this option + + + + + + + Hide this option if a (single-loop) condition has been met + + + + + + + Require a ship log fact to be known to show this option @@ -134,7 +176,21 @@ - + + + + Set a condition when this option is chosen + + + + + + + Cancel a condition when this option is chosen + + + + The name of the DialogueNode to go to when this option is selected @@ -144,4 +200,4 @@ - \ No newline at end of file +