- Joined
- Aug 25, 2004
- Messages
- 473
Here is the problem
If i want to Issue order to a unit, you have to fill in Ability Command.
The problem is that i have 20 ability commands and i dont want to make 20+ functions to fill those in.
So i have created a variable AbilityComman[Array] of type Ability Command
Now, Blizzard was kind enough to NOT include the recognition to the variable "ability command". When i click the field "select ability command", the variable selection is empty!!!
Does anyone know how to write a custom script that refers to the variable "ability_command[tempInteger]"
Here is my trigger
UI - Abilities Command = No Ability Command <Ability Command[20]>
(i did try to change it to every possible value, array, type etc )
If i want to Issue order to a unit, you have to fill in Ability Command.
The problem is that i have 20 ability commands and i dont want to make 20+ functions to fill those in.
So i have created a variable AbilityComman[Array] of type Ability Command
Now, Blizzard was kind enough to NOT include the recognition to the variable "ability command". When i click the field "select ability command", the variable selection is empty!!!
Does anyone know how to write a custom script that refers to the variable "ability_command[tempInteger]"
Here is my trigger
-
Events
-
Dialog - Any Dialog Item is Clicked by Player Any Player
-
-
Local Variables
-
temp Integer = 0 <Integer>
-
-
Conditions
-
Actions
-
General - For each integer temp Integer from 1 to UI - Number of abilities with increment 1, do (Actions)
-
Actions
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
-
(Used dialog item) == UI - Abilities Button[temp Integer]
-
-
Then
-
Unit - Order UI - Last Selected Unit[(Triggering player)] to (Ability Command) <------------------ *******HERE IS THE PROBLEM, CANT SELECT ANY VARIABLES***********
-
-
Else
-
-
-
-
UI - Abilities Command = No Ability Command <Ability Command[20]>
(i did try to change it to every possible value, array, type etc )