1. i am unaware of a function that specifically does that but u can make one by using ability of ability command and about 30 if statements, probably take u 15 minuets to make.
2. just issue order command?
3. This is not exactly possible, since you cant return arrays. there are work around but the basics would be a for loop for "unit order count" and collecting in an array "unit order at index" the trick is u cant return arrays, so u make a new variable type called order list or perhaps return a string containing a list.
4. u make a function that takes ur new variable type or a string, and it issues orders.
Thanks very much for the reply. Could you be more specific about the first answer...what is this 'ability of ability' command? I'm trying to find it in the GUI and the native functions list but I can't find it.
The official title under gui is " Ability of Ability Command" (read like 'ability' of 'ability command')
the native will loads like
(Ability of Ability Command) == Value 2
an example of use would be for zergling morph
(Ability of Larva - Morph to Zergling) == Zergling - Morph (Zergling -> Baneling)
This is about roundabout since it should be ==True
I'm searching for a few Galaxy native functions that accomplish certain tasks I need for my scripts:
1. Functions which get the type of unit being produced by a production building or egg and its progress
eg. A Zerg egg is making a roach, and the progress bar shows 15/27 ... looking for two functions to return "Roach" and integer 15 when passed egg.
2. Function which can set the above values for a production building or egg.
eg. Pass a unit - zerg egg - to said function and tell it to make a "Roach" and set progress to integer 15 seconds.
3. Function which can get the list of commands currently given to a Unit
eg. I Shift queued a probe to make a pylon then move to point p...looking for a function to return this info when invoked.
4. Function which can assign a list of commands to a unit
eg. Dynamically give commands to a probe - commands are not known at compile-time but determined at runtime.
1. i am unaware of a function that specifically does that but u can make one by using ability of ability command and about 30 if statements, probably take u 15 minuets to make.
2. just issue order command?
3. This is not exactly possible, since you cant return arrays. there are work around but the basics would be a for loop for "unit order count" and collecting in an array "unit order at index" the trick is u cant return arrays, so u make a new variable type called order list or perhaps return a string containing a list.
4. u make a function that takes ur new variable type or a string, and it issues orders.
@SoulTaker916: Go
Thanks very much for the reply. Could you be more specific about the first answer...what is this 'ability of ability' command? I'm trying to find it in the GUI and the native functions list but I can't find it.
Sure!
The official title under gui is " Ability of Ability Command" (read like 'ability' of 'ability command')
the native will loads like
(Ability of Ability Command) == Value 2
an example of use would be for zergling morph
(Ability of Larva - Morph to Zergling) == Zergling - Morph (Zergling -> Baneling)
This is about roundabout since it should be ==True
you would then make a function
u will need to add many more if thens