From f1a80770e1f18af2b3d55700d0edbfdd89f7edf5 Mon Sep 17 00:00:00 2001 From: FishyClockwork Date: Fri, 28 Oct 2016 13:43:46 +0200 Subject: [PATCH] Updated the USDF specs Updated the USDF specs about 'require' and 'exclude'. --- specs/usdf.txt | 20 ++++++++++++++++++++ specs/usdf_zdoom.txt | 10 ++++++++++ 2 files changed, 30 insertions(+) diff --git a/specs/usdf.txt b/specs/usdf.txt index 093c9e7d7..2c65f25d0 100644 --- a/specs/usdf.txt +++ b/specs/usdf.txt @@ -122,6 +122,26 @@ conversation // Starts a dialog. amount = ; // Minimum amount of the item needed. } + // The amount of an item needed for this option to become available. + // You can have as many as needed. All require blocks must be satisfied + // to show this option. + require + { + item = ; // Item that is required to show this option. + amount = ; // Minimum amount of the item needed. + } + + // The undesired amount of an item. This option will become available + // if you have less than the specified amount. You can have as many + // as needed. All exclude blocks must be satisfied to show this option. + // Note: if both require and exclude are defined then all require + // and all exclude blocks must be satisfied to show this option. + exclude + { + item = ; // Item that is unwanted to show this option. + amount = ; // Unwanted minimum amount of the item. + } + displaycost = ; // Whether the cost should be // displayed with the option. // If no cost is specified this should diff --git a/specs/usdf_zdoom.txt b/specs/usdf_zdoom.txt index c106cdd1a..8a324c088 100644 --- a/specs/usdf_zdoom.txt +++ b/specs/usdf_zdoom.txt @@ -50,6 +50,16 @@ conversation item = ; } + require + { + item = ; + } + + exclude + { + item = ; + } + giveitem = ; } }