Solu9
You can change this now in User CP.
- Reaction score
- 216
The title may be misleading.
Lets say I assign 5 different units to an array unit variable:
set Unit_Array[1] to Monster-A
set Unit_Array[2] to Monster-B
set Unit_Array[3] to Monster-C
set Unit_Array[4] to Monster-D
set Unit_Array[5] to Monster-E
Great!
Now I want a variable which stores a real for use to calculate how fast a timer will count later on.
set TimeSpeed_Array[1] to 1
set TimeSpeed_Array[2] to 1
set TimeSpeed_Array[3] to 1
set TimeSpeed_Array[4] to 1
set TimeSpeed_Array[5] to 1
Awesome!
Now if Unit_Array[X] picks up Boots of Speed then the TimeSpeed_Array for that specific unit will be set to (TimeSpeed[X] - 0.25) (that's 0.75 in case it was too hard to calculate yourself)
Now to the tricky part.
Events - a unit acquire an item
Conditions - item acquired equal to Boots of Speed
Actions -
If-
acquiring unit equal to Unit_Array[?]
Then-
set TimeSpeed_Array[?] to (TimeSpeed_Array[X] - 0.25)
Else-
You notice the two question marks up there? Thats the question.
----------------------------------------------------------------------------------------------------------
The timer that expires is run in a different trigger and there is a timer for each of the units involved. I take this can be set in a timer array variable as well. But let's leave that for now.
Lets say I assign 5 different units to an array unit variable:
set Unit_Array[1] to Monster-A
set Unit_Array[2] to Monster-B
set Unit_Array[3] to Monster-C
set Unit_Array[4] to Monster-D
set Unit_Array[5] to Monster-E
Great!
Now I want a variable which stores a real for use to calculate how fast a timer will count later on.
set TimeSpeed_Array[1] to 1
set TimeSpeed_Array[2] to 1
set TimeSpeed_Array[3] to 1
set TimeSpeed_Array[4] to 1
set TimeSpeed_Array[5] to 1
Awesome!
Now if Unit_Array[X] picks up Boots of Speed then the TimeSpeed_Array for that specific unit will be set to (TimeSpeed[X] - 0.25) (that's 0.75 in case it was too hard to calculate yourself)
Now to the tricky part.
Events - a unit acquire an item
Conditions - item acquired equal to Boots of Speed
Actions -
If-
acquiring unit equal to Unit_Array[?]
Then-
set TimeSpeed_Array[?] to (TimeSpeed_Array[X] - 0.25)
Else-
You notice the two question marks up there? Thats the question.
----------------------------------------------------------------------------------------------------------
The timer that expires is run in a different trigger and there is a timer for each of the units involved. I take this can be set in a timer array variable as well. But let's leave that for now.