Skip to content

Commit

Permalink
Merge pull request #18 from mardaravicius/try-to-fix-xs-task-amount-a…
Browse files Browse the repository at this point in the history
…dd-add-more-descriptions

try to fix xsTaskAmount and add more descriptions
  • Loading branch information
KSneijders authored Dec 6, 2024
2 parents e2baa71 + 8581696 commit eadeb1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/general/xs/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@
"name": "taskFieldId",
"type": "int",
"required": true,
"desc": "Specifies which property of the task to change\n - 0: Work Value 1\n - 1: Work Value 2\n - 2: Work Range\n - 3: Work Flag \n - 4: Search Wait Time\n - 5: Unused Flag (it is not actually unused, just what it's called in A.G.E.)\n - 6: Target Diplomacy"
"desc": "Specifies which property of the task to change\n - 0: Work Value 1 (For aura tasks its stores the amount of attribute that will be gained by the effected units)\n - 1: Work Value 2 (For aura tasks its store how many units need to be in range to turn on the aura)\n - 2: Work Range (For aura tasks its stores the aura range)\n - 3: Work Flag 2 (There is no work flag 1, just what it's called in A.G.E)\n - 4: Search Wait Time (Not related to the name, just what it's called in A.G.E. For aura task its store which attribute the aura increases. Only few attributes are supported: 5 - movement speed, 9 - attack, 10 - attack reload time, 13 - work rate, 109 - hp regen, 116 - melee armor, 117 - pierce armor)\n - 5: Unused Flag (It is not actually unused, just what it's called in A.G.E. For aura task its a bitfield of: 1 - multiply instead of add, 2 - circular instead of rectangle, 4 - visible, 32 - translucent. Add them together to activate multiple effects)\n - 6: Target Diplomacy (Which targets are effected: 0 - all, 1 - your only, 2 - neutral and enemy, 3 - gaia only, 4 - gaia, your and ally, 5 - gaia, neutral and enemy, 6 - all but yours)"
},
{
"name": "value",
Expand All @@ -1353,7 +1353,7 @@
"desc": "The value to set the task field to"
}
],
"desc": "Sets the value of the given field of the global XS task struct to the provided value. See also [#!cpp xsTask](./#531-xstask)"
"desc": "Sets the value of the given field of the global XS task struct to the provided value. See also [xsTask](./#531-xstask). It is recommended to always set all values before inserting or updating a task otherwise the insert/update might fail."
},
{
"name": "xsTask",
Expand Down
16 changes: 8 additions & 8 deletions docs/general/xs/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1063,16 +1063,16 @@ Prototype: `#!cpp void xsTaskAmount(int taskFieldId, float value)`
Parameters:

1. `#!cpp int taskFieldId`: Specifies which property of the task to change
- 0: Work Value 1
- 1: Work Value 2
- 2: Work Range
- 3: Work Flag
- 4: Search Wait Time
- 5: Unused Flag (it is not actually unused, just what it's called in A.G.E.)
- 6: Target Diplomacy
- 0: Work Value 1 (For aura tasks its stores the amount of attribute that will be gained by the effected units)
- 1: Work Value 2 (For aura tasks its store how many units need to be in range to turn on the aura)
- 2: Work Range (For aura tasks its stores the aura range)
- 3: Work Flag 2 (There is no work flag 1, just what it's called in A.G.E)
- 4: Search Wait Time (Not related to the name, just what it's called in A.G.E. For aura task its store which attribute the aura increases. Only few attributes are supported: 5 - movement speed, 9 - attack, 10 - attack reload time, 13 - work rate, 109 - hp regen, 116 - melee armor, 117 - pierce armor)
- 5: Unused Flag (It is not actually unused, just what it's called in A.G.E. For aura task its a bitfield of: 1 - multiply instead of add, 2 - circular instead of rectangle, 4 - visible, 32 - translucent. Add them together to activate multiple effects)
- 6: Target Diplomacy (Which targets are effected: 0 - all, 1 - your only, 2 - neutral and enemy, 3 - gaia only, 4 - gaia, your and ally, 5 - gaia, neutral and enemy, 6 - all but yours)
2. `#!cpp float value`: The value to set the task field to

Sets the value of the given field of the global XS task struct to the provided value. See also [#!cpp xsTask](./#531-xstask)
Sets the value of the given field of the global XS task struct to the provided value. See also [xsTask](./#531-xstask). It is recommended to always set all values before inserting or updating a task otherwise the insert/update might fail.

### 5.33. xsTriggerVariable

Expand Down

0 comments on commit eadeb1f

Please sign in to comment.