From 032eb4b987cb8ca0f65b25edd6d1ac614f0d8c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mindaugas=20Ardaravi=C4=8Dius?= Date: Fri, 11 Oct 2024 14:04:55 +0200 Subject: [PATCH 1/2] Update functions.json add targetUnitLevel description to the xsObjectHasAction --- docs/general/xs/functions.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/general/xs/functions.json b/docs/general/xs/functions.json index 99f5ec0..f1d1030 100644 --- a/docs/general/xs/functions.json +++ b/docs/general/xs/functions.json @@ -1100,19 +1100,19 @@ "name": "targetPlayerID", "type": "int", "required": false, - "desc": "Check if the action is being performed on a unit (eg. attacking) of this player" + "desc": "Check if the action is being performed on a unit (eg. attacking) of this player. Can use -1 to ignore this filter." }, { "name": "targetType", "type": "int", "required": false, - "desc": "Check if the action is being performed on a unit of this type. Values 9xx refer to classes" + "desc": "Check if the action is being performed on a unit of this type. Values 9xx refer to classes. Can use -1 to ignore this filter." }, { "name": "targetUnitLevel", "type": "int", "required": false, - "desc": "Unknown" + "desc": "Check if the action is being performed on a unit with this `Interface Kind` (look in the A.G.E.), eg: 3 - villagers, 4 - most military units. Can be used as an alternative to `targetType`. If both are used, will pick units that match either. Can use -1 to ignore this filter." } ], "desc": "Checks and returns if any unit matching the set filters of the given player has the specified action." From 7e7012a80eeb5d4cdb1a42c7cd54638e51b6a5d5 Mon Sep 17 00:00:00 2001 From: mindaugasa Date: Fri, 11 Oct 2024 14:15:23 +0200 Subject: [PATCH 2/2] ran script --- docs/general/xs/functions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/general/xs/functions.md b/docs/general/xs/functions.md index 9d53a31..73c71d7 100644 --- a/docs/general/xs/functions.md +++ b/docs/general/xs/functions.md @@ -961,9 +961,9 @@ Parameters: 1. `#!cpp int playerID`: The player to check unit actions for 2. `#!cpp int unitType`: The type of unit to check actions for. Values 9xx refer to classes 3. `#!cpp int actionId`: The type of action to check for -4. (Optional) `#!cpp int targetPlayerID`: Check if the action is being performed on a unit (eg. attacking) of this player -5. (Optional) `#!cpp int targetType`: Check if the action is being performed on a unit of this type. Values 9xx refer to classes -6. (Optional) `#!cpp int targetUnitLevel`: Unknown +4. (Optional) `#!cpp int targetPlayerID`: Check if the action is being performed on a unit (eg. attacking) of this player. Can use -1 to ignore this filter. +5. (Optional) `#!cpp int targetType`: Check if the action is being performed on a unit of this type. Values 9xx refer to classes. Can use -1 to ignore this filter. +6. (Optional) `#!cpp int targetUnitLevel`: Check if the action is being performed on a unit with this `Interface Kind` (look in the A.G.E.), eg: 3 - villagers, 4 - most military units. Can be used as an alternative to `targetType`. If both are used, will pick units that match either. Can use -1 to ignore this filter. Checks and returns if any unit matching the set filters of the given player has the specified action.