From b55c4497d07201b5c87fe28af2957a727deb6a43 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sat, 18 Nov 2023 22:54:39 +0200 Subject: [PATCH] Better formatting for general filter rules --- docs/Modders/Unique-parameters.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/docs/Modders/Unique-parameters.md b/docs/Modders/Unique-parameters.md index 5826c5f994..177be0f4e7 100644 --- a/docs/Modders/Unique-parameters.md +++ b/docs/Modders/Unique-parameters.md @@ -11,15 +11,23 @@ Note that all of these are case-sensitive! ## General Filter Rules -- All filters except for `cityFilter` and `populationFilter` accept multiple values in the format: `{A} {B} {C}` etc, meaning "the object must match ALL of these filters" - - For example: `[{Military} {Water}] units`, `[{Wounded} {Armor}] units`, etc. - - No space or other text is allowed between the `[` and the first `{`. -- All filters accept `non-[filter]` as a possible value - - For example: `[non-[Wounded]] units` -- These can be combined by having the values be negative filters - - For example: `[{non-[Wounded]} {Armor}] units` -- These CANNOT be combined in the other way - e.g. `[non-[{Wounded} {Armor}]] units` is NOT valid and will fail to register any units. - - This is because to the player, the text will be `non-Wounded Armor units`, which parses like `[{non-[Wounded]} {Armor}] units` +All filters except for `cityFilter` and `populationFilter` accept multiple values in the format: `{A} {B} {C}` etc, meaning "the object must match ALL of these filters" + + Example: `[{Military} {Water}] units`, `[{Wounded} {Armor}] units`, etc. + +No space or other text is allowed between the `[` and the first `{`. + +All filters accept `non-[filter]` as a possible value + + Example: `[non-[Wounded]] units` + +These can be combined by having the values be negative filters + + Example: `[{non-[Wounded]} {Armor}] units` + +These CANNOT be combined in the other way - e.g. `[non-[{Wounded} {Armor}]] units` is NOT valid and will fail to register any units. + + This is because to the player, the text will be `non-Wounded Armor units`, which parses like `[{non-[Wounded]} {Armor}] units` ## civFilter