XeNiM666
I lurk for pizza
- Reaction score
- 138
umm...
is this leakless???
its too long and i get confused...
is this leakless???
Code:
Whakapow
Events
Unit - A unit Starts the effect of an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Whakapow!
(Ability being cast) Equal to Whakapow! (Stronger)
Actions
Set Caster[1] = (Triggering unit)
Set CasterLoc[1] = (Position of Caster[1])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (Ability being cast) for Caster[1]) Less than or equal to 3
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Whakapow!
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to ((Level of (Ability being cast) for Caster[1]) x 5)
Then - Actions
Floating Text - Create floating text that reads Whakapow! at CasterLoc[1] with Z offset 0.00, using font size 11.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 90.00 towards 90.00 degrees
Custom script: call PolledWait(0.10)
Unit - Create 1 Dummy for (Owner of Caster[1]) at CasterLoc[1] facing (Facing of Caster[1]) degrees
Set Point[1] = (Position of (Last created unit))
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Whakapow! Dummy to (Last created unit)
Unit - Set level of Whakapow! Dummy for (Last created unit) to (Level of Whakapow! for Caster[1])
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave Point[1]
Custom script: call RemoveLocation(udg_Point[1])
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Whakapow! (Stronger)
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to (((Level of Whakapow! (Stronger) for Caster[1]) x 5) + 20)
Then - Actions
Floating Text - Create floating text that reads Whakapow! at (Position of (Triggering unit)) with Z offset 0.00, using font size 11.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 90.00 towards 90.00 degrees
Custom script: call PolledWait(0.10)
Unit - Create 1 Dummy for (Owner of Caster[1]) at CasterLoc[1] facing (Facing of Caster[1]) degrees
Set Point[1] = (Position of (Last created unit))
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Whakapow! Dummy Stronger to (Last created unit)
Unit - Set level of Whakapow! Dummy Stronger for (Last created unit) to (Level of Whakapow! (Stronger) for Caster[1])
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave Point[1]
Custom script: call RemoveLocation(udg_Point[1])
Else - Actions
Else - Actions
Else - Actions
-------- ------------------------------------------------------------------------------------------------------------------------------------------- --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Level of (Ability being cast) for (Triggering unit)) Less than or equal to 5
(Level of (Ability being cast) for (Triggering unit)) Greater than or equal to 4
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Whakapow!
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to ((Level of (Ability being cast) for Caster[1]) x 5)
Then - Actions
Floating Text - Create floating text that reads Whakapow! at (Position of (Triggering unit)) with Z offset 0.00, using font size 11.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 90.00 towards 90.00 degrees
Custom script: call PolledWait(0.10)
For each (Integer A) from 1 to 2, do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of Caster[1]) at CasterLoc[1] facing (Facing of Caster[1]) degrees
Set Point[1] = (Position of (Last created unit))
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Whakapow! Dummy to (Last created unit)
Unit - Set level of Whakapow! Dummy for (Last created unit) to (Level of Whakapow! for Caster[1])
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave Point[1]
Custom script: call RemoveLocation(udg_Point[1])
Custom script: call PolledWait(0.10)
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Whakapow! (Stronger)
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to (((Level of Whakapow! (Stronger) for Caster[1]) x 5) + 20)
Then - Actions
Floating Text - Create floating text that reads Whakapow! at CasterLoc[1] with Z offset 0.00, using font size 11.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 90.00 towards 90.00 degrees
Custom script: call PolledWait(0.10)
For each (Integer A) from 1 to 2, do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of Caster[1]) at (Position of Caster[1]) facing (Facing of Caster[1]) degrees
Set Point[1] = (Position of (Last created unit))
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Whakapow! Dummy Stronger to (Last created unit)
Unit - Set level of Whakapow! Dummy Stronger for (Last created unit) to (Level of Whakapow! (Stronger) for Caster[1])
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave Point[1]
Custom script: call RemoveLocation(udg_Point[1])
Custom script: call PolledWait(0.10)
Else - Actions
Else - Actions
Else - Actions
Custom script: call RemoveLocation(udg_CasterPos[1])