Is there an easier way to get this same effect? In gui
like make it so that when you level up an ability the dummys auto learn the same level dummy ability.
like make it so that when you level up an ability the dummys auto learn the same level dummy ability.
Code:
ShatterEarth
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Shatter Earth
Actions
Wait 0.25 seconds
Set Temp_Caster = (Casting unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 1
Then - Actions
Set Temp_Int = 0
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 2
Then - Actions
Set Temp_Int = 0
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 3
Then - Actions
Set Temp_Int = 1
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 4
Then - Actions
Set Temp_Int = 2
Else - Actions
Set Temp_Point = (Position of Temp_Caster)
Unit - Create 1 Dummy Unit for (Owner of Temp_Caster) at (Temp_Point offset by 200.00 towards (Facing of Temp_Caster) degrees) facing ((Facing of Temp_Caster) + 30.00) degrees
Unit - Add ShatterEarth(Dummy) to (Last created unit)
Set Temp_Point = (Position of (Last created unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 1
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 1
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 2
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 2
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 3
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 3
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 4
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 4
Else - Actions
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Temp_Point offset by 200.00 towards ((Facing of (Last created unit)) + 30.00) degrees)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit Group - Add (Last created unit) to Temp_GroupArray[0]
Set Temp_Point = (Position of Temp_Caster)
Unit - Create 1 Dummy Unit for (Owner of Temp_Caster) at (Temp_Point offset by 200.00 towards (Facing of Temp_Caster) degrees) facing ((Facing of Temp_Caster) - 30.00) degrees
Unit - Add ShatterEarth(Dummy) to (Last created unit)
Set Temp_Point = (Position of (Last created unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 1
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 1
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 2
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 2
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 3
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 3
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 4
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 4
Else - Actions
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Temp_Point offset by 200.00 towards ((Facing of (Last created unit)) - 30.00) degrees)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit Group - Add (Last created unit) to Temp_GroupArray[0]
For each (Integer A) from 0 to Temp_Int, do (Actions)
Loop - Actions
Wait 0.25 seconds
Unit Group - Pick every unit in Temp_GroupArray[(Integer A)] and do (Actions)
Loop - Actions
Set Temp_Point = (Position of (Picked unit))
Unit - Create 1 Dummy Unit for (Owner of Temp_Caster) at (Temp_Point offset by 200.00 towards (Facing of (Picked unit)) degrees) facing ((Facing of (Picked unit)) + 30.00) degrees
Unit - Add ShatterEarth(Dummy) to (Last created unit)
Set Temp_Point = (Position of (Last created unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 1
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 1
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 2
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 2
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 3
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 3
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 4
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 4
Else - Actions
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Temp_Point offset by 200.00 towards ((Facing of (Last created unit)) + 30.00) degrees)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit Group - Add (Last created unit) to Temp_GroupArray[((Integer A) + 1)]
Set Temp_Point = (Position of (Picked unit))
Unit - Create 1 Dummy Unit for (Owner of Temp_Caster) at (Temp_Point offset by 200.00 towards (Facing of (Picked unit)) degrees) facing ((Facing of (Picked unit)) - 30.00) degrees
Unit - Add ShatterEarth(Dummy) to (Last created unit)
Set Temp_Point = (Position of (Last created unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 1
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 1
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 2
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 2
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 3
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 3
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shatter Earth for Temp_Caster) Equal to 4
Then - Actions
Unit - Set level of ShatterEarth(Dummy) for (Last created unit) to 4
Else - Actions
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Temp_Point offset by 200.00 towards ((Facing of (Last created unit)) - 30.00) degrees)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit Group - Add (Last created unit) to Temp_GroupArray[((Integer A) + 1)]
For each (Integer A) from 0 to 3, do (Actions)
Loop - Actions
Unit Group - Remove all units of Temp_GroupArray[(Integer A)] from Temp_GroupArray[(Integer A)]