- Joined
- Jul 26, 2013
- Messages
- 41
-
Omnislash
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Omnislash
-
Actions
- Set o = (Triggering unit)
- Set t = (Target unit of ability being cast)
- Set tl = (Position of t)
- If ((Level of Omnislash for o) Equal to 1) then do (Set Omnislash_Loops = 2) else do (Do nothing)
- If ((Level of Omnislash for o) Equal to 2) then do (Set Omnislash_Loops = 4) else do (Do nothing)
- If ((Level of Omnislash for o) Equal to 3) then do (Set Omnislash_Loops = 7) else do (Do nothing)
- Unit - Make o Invulnerable
- Animation - Change o's vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
- Selection - Remove o from selection for (Owner of o)
- Unit - Move o instantly to (Random point in (Region centered at tl with size (100.00, 100.00)))
- Unit - Make o face tl over 0.01 seconds
- Custom script: call RemoveLocation(udg_tl)
- Animation - Play o's attack animation
- Unit - Cause o to damage t, dealing ((Random real number between 100.00 and 200.00) + ((Real((Strength of o (Include bonuses)))) + (Real((Agility of o (Include bonuses)))))) damage of attack type Hero and damage type Normal
- Special Effect - Create a special effect attached to the chest of o using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
For each (Integer A) from 1 to Omnislash_Loops, do (Actions)
-
Loop - Actions
- Wait 0.30 game-time seconds
- Set o_current_loc = (Position of o)
- Set EG[1] = (Units within 600.00 of o_current_loc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True) and ((((Matching unit) is A flyin
- Set EG[2] = (Random 1 units from EG[1])
- Custom script: call RemoveLocation(udg_o_current_loc)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in EG[1]) Greater than 0
-
Then - Actions
-
Unit Group - Pick every unit in EG[2] and do (Actions)
-
Loop - Actions
- Set p = (Picked unit)
- Set pl = (Position of p)
- Selection - Remove o from selection for (Owner of o)
- Unit - Move o instantly to (Random point in (Region centered at pl with size (100.00, 100.00)))
- Unit - Make o face pl over 0.01 seconds
- Custom script: call RemoveLocation(udg_pl)
- Animation - Play o's attack animation
- Unit - Cause o to damage p, dealing ((Random real number between 100.00 and 200.00) + ((Real((Strength of o (Include bonuses)))) + (Real((Agility of o (Include bonuses)))))) damage of attack type Hero and damage type Normal
- Special Effect - Create a special effect attached to the chest of o using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call DestroyGroup(udg_EG[1])
- Custom script: call DestroyGroup(udg_EG[2])
-
Loop - Actions
-
Unit Group - Pick every unit in EG[2] and do (Actions)
-
Else - Actions
- Custom script: call DestroyGroup(udg_EG[1])
- Custom script: call DestroyGroup(udg_EG[2])
- Selection - Add o to selection for (Owner of o)
- Animation - Change o's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Unit - Make o Vulnerable
-
If - Conditions
-
Loop - Actions
- Selection - Add o to selection for (Owner of o)
- Animation - Change o's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Unit - Make o Vulnerable
-
Events
One more thing I've noticed... the Base spell of Omnislash doesn't seem to activate it's cooldown... the mana cost still applyes though.
Last edited: