Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Here's my trigger

Events


Unit - A unit Begins channeling an ability

Conditions


(Ability being cast) Equal to Heaven's Wrath

Actions


Unit - Hide (Triggering unit)


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



If - Conditions



Then - Actions




Countdown Timer - Start Heavens_Wrath_Timer as a One-shot timer that will expire in 5.00 seconds



Else - Actions




Unit - Unhide (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions


The sky is cloudy equals to True

Then - Actions


It rains

Else - Actions


It's sunny day
Events

Unit - A unit Begins channeling an ability
Conditions

(Ability being cast) Equal to Heaven's Wrath
Actions

Set Heavens_Wrath_Unit = (Triggering unit)

Unit - Hide (Triggering unit)

Countdown Timer - Start Heavens_Wrath_Timer as a One-shot timer that will expire in 5.00 seconds
Events

Time - Heavens_Wrath_Timer expires
Conditions
Actions

Unit - Unhide Heavens_Wrath_Unit

Set Heavens_Wrath_Unit = No unit
Events

Unit - A Unit Begins channeling an ability
Conditions

(Ability being cast) Equal to Heaven's Wrath
Actions

Unit - Hide (Triggering unit)

Wait 5.00 second game time

Unit - Unhide (Triggering unit)
Cast

Events


Unit - A unit Starts the effect of an ability

Conditions

Actions


Set PlayerNumber = (Player number of (Triggering player))


Set PlayerUnit[PlayerNumber] = (Triggering unit)


Set PlayerDuration[PlayerNumber] = 5.00


Unit Group - Add PlayerUnit[PlayerNumber] to UnitGroup


Trigger - Turn on Loop <gen>
Loop

Events


Time - Every 0.03 seconds of game time

Conditions

Actions


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



If - Conditions




(UnitGroup is empty) Equal to True



Then - Actions




Trigger - Turn off (This trigger)



Else - Actions




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





Loop - Actions






Set TempUnit = (Picked unit)






Set PlayerNumber = (Player number of (Owner of TempUnit))






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







If - Conditions








PlayerDuration[PlayerNumber] Greater than 0.00








(TempUnit is alive) Equal to True







Then - Actions








Set PlayerDuration[PlayerNumber] = (PlayerDuration[PlayerNumber] - 0.03)








Set TempLoc = (Position of TempUnit)








Set TempLoc2 = (TempLoc offset by 10.00 towards (Facing of TempUnit) degrees)








Unit - Move TempUnit instantly to TempLoc2








Custom script: call RemoveLocation(udg_TempLoc)








Custom script: call RemoveLocation(udg_TempLoc2)







Else - Actions








Unit Group - Remove TempUnit from UnitGroup
Cast

Events


Unit - A unit Starts the effect of an ability

Conditions

Actions


Set MaxIndex = (MaxIndex + 1)


Set Unit[MaxIndex] = (Triggering unit)


Set Duration[MaxIndex] = 5.00


Trigger - Turn on Loop <gen>
Loop

Events


Time - Every 0.03 seconds of game time

Conditions

Actions


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



If - Conditions




MaxIndex Equal to 0



Then - Actions




Trigger - Turn off (This trigger)



Else - Actions




For each (Integer CurrentIndex) from 1 to MaxIndex, do (Actions)





Loop - Actions






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







If - Conditions








Duration[CurrentIndex] Greater than 0.00








(Unit[CurrentIndex] is alive) Equal to True







Then - Actions








Set Duration[CurrentIndex] = (Duration[CurrentIndex] - 0.03)








Set TempLoc = (Position of Unit[CurrentIndex])








Set TempLoc2 = (TempLoc offset by 10.00 towards (Facing of Unit[CurrentIndex]) degrees)








Unit - Move Unit[CurrentIndex] instantly to TempLoc2








Custom script: call RemoveLocation(udg_TempLoc)








Custom script: call RemoveLocation(udg_TempLoc2)







Else - Actions








Set Duration[CurrentIndex] = Duration[MaxIndex]








Set Unit[CurrentIndex] = Unit[MaxIndex]








Set MaxIndex = (MaxIndex - 1)
