- Joined
- Aug 14, 2020
- Messages
- 118
Hello guys, I haven't been here for a while. good to be back!
well, I'm creating an ability for a FrostMage called Chill, any kind of damage from her will chill enemies for 5 seconds, additionally she can active ability to freeze all chilled units.
Here is trigger:
here is second trigger
how should I set Array's Size? since we have a lot of units in campaign I don't know if I should set it to 999999 or only 1 xd
I don't know how it works exactly, also if I did anything wrong in triggers I'll be thankful if u tell me where is my mistake.
well, I'm creating an ability for a FrostMage called Chill, any kind of damage from her will chill enemies for 5 seconds, additionally she can active ability to freeze all chilled units.
Here is trigger:
-
Chilled
-

Events
-

Conditions
-


(Damage taken) Greater than 0.00
-
-

Actions
-


Set TempUnit[0] = (Attacked unit)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(TempUnit[0] belongs to an enemy of (Owner of Mira)) Equal to True
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(TempUnit[0] is in Chilled) Equal to False
-
-





Then - Actions
-






Unit Group - Add TempUnit[0] to Chilled
-






Unit - Add Chilled (Buff) to TempUnit[0]
-






Set Chilled_Int[(Custom value of TempUnit[0])] = 5
-
-





Else - Actions
-






Set Chilled_Int[(Custom value of TempUnit[0])] = 5
-
-
-
-



Else - Actions
-




-------- EMPTY --------
-
-
-
-
here is second trigger
-
Chilled Loop
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-


(Number of units in Chilled) Greater than 0
-
-

Actions
-


Unit Group - Pick every unit in Chilled and do (Actions)
-



Loop - Actions
-




Set Chilled_Int[(Custom value of (Picked unit))] = (Chilled_Int[(Custom value of (Picked unit))] - 1)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






Chilled_Int[(Custom value of (Picked unit))] Equal to 0
-
-





Then - Actions
-






Unit Group - Remove (Picked unit) from Chilled
-






Unit - Remove Chilled (Buff) from (Picked unit)
-
-





Else - Actions
-
-
-
-
-
how should I set Array's Size? since we have a lot of units in campaign I don't know if I should set it to 999999 or only 1 xd
I don't know how it works exactly, also if I did anything wrong in triggers I'll be thankful if u tell me where is my mistake.

