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.
Events

Unit - A unit starts the effect of an ability
Conditions

(Ability being cast) equal to CONTROL
Actions

Custom script: local unit udg_MC_Unit

Custom script: local player udg_MC_Player

Set MC_Unit = (Target unit of ability being cast)

Set MC_Player = (Owner of MC_Unit)

Wait 10.00 game-time seconds

Unit - Change owner of MC_Unit to MC_Player and change color

-------- might not need these lines, but my suspicion is you will: --------

Custom script: set udg_MC_Unit = null

Custom script: set udg_MC_Player = null
What's with the MC?MC_Unit
Cast MC

Events


Unit - A unit Starts the effect of an ability

Conditions

Actions


Set Unit_MC = (Target unit of ability being cast)


Unit Group - Add Unit_MC to Group_MC[(Player number of (Owner of Unit_MC))]


Unit - Set the custom value of Unit_MC to 10


Unit - Change ownership of Unit_MC to (Owner of (Triggering unit)) and Change color


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



If - Conditions




(Remaining time for Timer_MC) Greater than 0.00



Then - Actions




Do nothing



Else - Actions




Countdown Timer - Start Timer_MC as a One-shot timer that will expire in 1.00 seconds
Timer MC

Events


Time - Timer_MC expires

Conditions

Actions


Set Boolean_MC = False


For each (Integer A) from 1 to 28, do (Actions)



Loop - Actions




Unit Group - Pick every unit in Group_MC[(Integer A)] and do (Actions)





Loop - Actions






Set Boolean_MC = True






Set Unit_MC = (Picked unit)






Unit - Set the custom value of Unit_MC to ((Custom value of Unit_MC) - 1)






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







If - Conditions








(Custom value of Unit_MC) Less than or equal to 0







Then - Actions








Unit Group - Remove Unit_MC from Group_MC[(Integer A)]








Unit - Change ownership of Unit_MC to (Player((Integer A))) and Change color







Else - Actions


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



If - Conditions




Boolean_MC Equal to True



Then - Actions




Countdown Timer - Start Timer_MC as a One-shot timer that will expire in 1.00 seconds



Else - Actions
...
Actions

Set Unit = (Target unit of ability being cast)

Set Player = (Owner of Unit)

Unit - Change owner of Unit to (Triggering Player) without changing color

Wait 10.00 game-time seconds

Unit - Change owner of Unit to Player without changing color
