Supaya gak bingung wa kasi bocoran Trigger aja Deh.... "Untuk Yang mengerti WE"
Gwe sendiri lebih mudah mempraktekkan daripada menjelaskan
happy Omnislashing!!
kalo ada yang ga ngerti tolong beri tahu ya entar saya kasi tau...
Code:
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 loops = 2) else do (Do nothing)
If ((Level of Omnislash for o) Equal to 2) then do (Set loops = 4) else do (Do nothing)
If ((Level of Omnislash for o) Equal to 3) then do (Set 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
Unit - Move o instantly to tl
Custom script: call RemoveLocation(udg_tl)
Animation - Play o's attack animation
Unit - Cause o to damage t, dealing (Random real number between 150.00 and 250.00) 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 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 (Owner of o)) Equal to True) and ((((Matching unit) is A flying
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
Unit - Move o instantly to pl
Custom script: call RemoveLocation(udg_pl)
Animation - Play o's attack animation
Unit - Cause o to damage p, dealing (Random real number between 150.00 and 250.00) 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])
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
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
Share This Thread