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

Events


Unit - Paladin 0001 <gen> Begins casting an ability

Conditions

Actions


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



Loop - Actions




Set loc1 = (Position of (Casting unit))




Set loc2 = (loc1 offset by 100.00 towards (Real((Integer A))) degrees)




Unit - Create 1 dummy caster for Player 1 (Red) at loc1 facing Default building facing degrees




Unit - Add Carrion Swarm to (Last created unit)




Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm loc2




Custom script: call RemoveLocation(udg_loc1)




Custom script: call RemoveLocation(udg_loc2)
asdfr
Events
Unit - Paladin 0001 <gen> Begins casting an ability
Conditions
Actions
For each (Integer A) from 1 to 4, do (Actions)
Loop - Actions
Set loc1 = (Position of (Casting unit))
Set loc2 = (loc1 offset by 100.00 towards (Real((Integer A))) degrees)
Unit - Create 1 dummy caster for Player 1 (Red) at loc1 facing Default building facing degrees
Unit - Add Carrion Swarm to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm loc2
Custom script: call RemoveLocation(udg_loc1)
Custom script: call RemoveLocation(udg_loc2)
It wont work. What have I done wrong?
Actions

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


Loop - Actions



Set loc1 = (Position of (Casting unit))



Set loc2 = (loc1 offset by 100.00 towards (90.00 x (Real((Integer A)))) degrees)



Unit - Create 1 dummy caster for Player 1 (Red) at loc1 facing Default building facing degrees



Unit - Add Carrion Swarm to (Last created unit)



Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm loc2



Custom script: call RemoveLocation(udg_loc1)



Custom script: call RemoveLocation(udg_loc2)
asdfr

Events


Unit - Paladin 0001 <gen> Begins casting an ability

Conditions

Actions


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



Loop - Actions




Set loc1 = (Position of (Casting unit))




Set loc2 = (loc1 offset by 100.00 towards (90.00 x (Real((Integer A)))) degrees)




Unit - Add Carrion Swarm to Paladin 0001 <gen>




Unit - Order Paladin 0001 <gen> to Undead Dreadlord - Carrion Swarm loc2


Custom script: call RemoveLocation(udg_loc2)


Custom script: call RemoveLocation(udg_loc1)
asdfr

Events


Unit - A unit Starts the effect of an ability

Conditions

Actions


Set loc1 = (Position of (Triggering unit))


For each (Integer Tempint) from 1 to 4, do (Actions)



Loop - Actions




Unit - Create 1 dummycaster (Custom Campaign) for (Triggering player) at loc1 facing Default building facing degrees




Set Tempdummyunit = (Last created unit)




Unit - Add Carrion Swarm to Tempdummyunit




Set loc2 = (loc1 offset by 100.00 towards ((Real(Tempint)) x 90.00) degrees)




Unit - Order Tempdummyunit to Undead Dreadlord - Carrion Swarm loc2




Custom script: call RemoveLocation(udg_loc2)


Custom script: call RemoveLocation(udg_loc1)
Ravage

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to spell

Actions


Set temp_point[1] = (Position of (Triggering unit))


Unit - Create 1 dummy for (Triggering player) at temp_point[1] facing Default building facing degrees


Set temp_unit = (Last created unit)


Unit - Add a 0.50 second Generic expiration timer to temp_unit


Unit - Add dummyspell to temp_unit


Unit - Set level of dummyspell for temp_unit to (Level of spell for (Casting unit))


For each (Integer loop) from 1 to 3, do (Actions)



Loop - Actions




Set temp_point[2] = (temp_point[1] offset by 100.00 towards (45.00 x (Real(loop))) degrees)




Unit - Order temp_unit to Orc Tauren Chieftain - Shockwave temp_point[2]


Custom script: call RemoveLocation( udg_temp_point[1] )


Custom script: call RemoveLocation( udg_temp_point[2] )
Set TempTrigUnit = (TriggeringUnit)
Set TempPoint = (Position of (TempTrigUnit))
Set TempPoint2 = (TempPoint offset by 100.00 towards (Facing of (TempTrigUnit + 180) degrees)
Unit - Create 1 (Dummy Unit) at TempPoint for (Triggering Player) facing (Facing of (TempTrigUnit + 180) degrees)
Set TempDummyUnit = (Last Created Unit)
Unit - add (0.50) seconds expiration timer to TempDummyUnit
Unit - Add (dummyspell) to TempDummyUnit
Unit - Set Level of (dummyspell) for TempDummyUnit to (Level of spell for (TempTrigUnit))
Unit - Order TempDummyUnit to Orc Tauren Chieftain - Shockwave TempPoint2
call RemoveLocation(udg_TempPoint2)
Set TempTrigUnit = (TriggeringUnit)
Set TempPoint = (Position of (TempTrigUnit))
Set TempPoint2 = (TempPoint offset by 100.00 towards (Facing of (TempTrigUnit + 225) degrees)
Unit - Create 1 (Dummy Unit) at TempPoint for (Triggering Player) facing (Facing of (TempTrigUnit + 225) degrees)
Set TempDummyUnit = (Last Created Unit)
Unit - add (0.50) seconds expiration timer to TempDummyUnit
Unit - Add (dummyspell) to TempDummyUnit
Unit - Set Level of (dummyspell) for TempDummyUnit to (Level of spell for (TempTrigUnit))
Unit - Order TempDummyUnit to Orc Tauren Chieftain - Shockwave TempPoint2
call RemoveLocation(udg_TempPoint2)
Set TempTrigUnit = (TriggeringUnit)
Set TempPoint = (Position of (TempTrigUnit))
Set TempPoint2 = (TempPoint offset by 100.00 towards (Facing of (TempTrigUnit + 135) degrees)
Unit - Create 1 (Dummy Unit) at TempPoint for (Triggering Player) facing (Facing of (TempTrigUnit + 135) degrees)
Set TempDummyUnit = (Last Created Unit)
Unit - add (0.50) seconds expiration timer to TempDummyUnit
Unit - Add (dummyspell) to TempDummyUnit
Unit - Set Level of (dummyspell) for TempDummyUnit to (Level of spell for (TempTrigUnit))
Unit - Order TempDummyUnit to Orc Tauren Chieftain - Shockwave TempPoint2
call RemoveLocation(udg_TempPoint2)
call RemoveLocation(udg_TempPoint)
set udg_TempPoint = null
set udg_TempPoint2 = null
set udg_TempDummyUnit = null
set udg_TempTrigUnit = null
Carrion Wave

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Carrion Wave (Hero version)

Actions


Set p1 = (Position of (Triggering unit))


Unit - Create 1 Dummy for (Owner of (Triggering unit)) at p1 facing Default building facing degrees


Set dummy = (Last created unit)


Unit - Add Carrion Wave (Dummy version) to dummy


For each (Integer loop_var) from 1 to 4, do (Actions)



Loop - Actions




Set p2 = (p1 offset by 100.00 towards (90.00 x (Real(loop_var))) degrees)




Unit - Order dummy to Undead Dreadlord - Carrion Swarm p2




Custom script: call RemoveLocation(udg_p2)


Unit - Remove dummy from the game


Custom script: call RemoveLocation(udg_p1)
This can be avoided by preloading them during the initialization phase.Also notice: The first time you use the spell a small lag occurs (hardly noticeable) - that is not due to how the spell is set up, but due to units and abilities loading for the first time.
asdfr

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Thunder Clap

Actions


Set loc1 = (Position of (Triggering unit))


Unit - Create 1 dummycaster (Custom Campaign) for (Triggering player) at loc1 facing Default building facing degrees


Set Tempdummyunit = (Last created unit)


Unit - Add a 0.50 second Generic expiration timer to Tempdummyunit


Unit - Add Carrion Swarm to Tempdummyunit


For each (Integer Tempint) from 1 to 4, do (Actions)



Loop - Actions




Unit - Create 1 dummycaster (Custom Campaign) for (Triggering player) at loc1 facing Default building facing degrees




Set Tempdummyunit = (Last created unit)




Unit - Add a 0.50 second Generic expiration timer to Tempdummyunit




Unit - Add Carrion Swarm to Tempdummyunit




Set loc2 = (loc1 offset by 100.00 towards (90.00 x (Real(Tempint))) degrees)




Unit - Order Tempdummyunit to Undead Dreadlord - Carrion Swarm loc2




Custom script: call RemoveLocation(udg_loc2)


Custom script: call RemoveLocation(udg_loc1)
This trigger is just okay.I tried this and it finally works.
asdfr
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Thunder Clap
Actions
Set loc1 = (Position of (Triggering unit))
Unit - Create 1 dummycaster (Custom Campaign) for (Triggering player) at loc1 facing Default building facing degrees
Set Tempdummyunit = (Last created unit)
Unit - Add a 0.50 second Generic expiration timer to Tempdummyunit
Unit - Add Carrion Swarm to Tempdummyunit
For each (Integer Tempint) from 1 to 4, do (Actions)
Loop - Actions
Set loc2 = (loc1 offset by 100.00 towards (90.00 x (Real(Tempint))) degrees)
Unit - Order Tempdummyunit to Undead Dreadlord - Carrion Swarm loc2
Custom script: call RemoveLocation(udg_loc2)
Custom script: call RemoveLocation(udg_loc1)
