THE_X
New Member
- Reaction score
- 49
Elunes Arrow
(from DOTA)
MUI/MPI - MUI
Jass/GUI - GUI
Leakless - Hope so
Fun - yea
MUI/MPI - MUI
Jass/GUI - GUI
Leakless - Hope so
Fun - yea
Code:
Start Elunes Arrow
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Elunes Arrow
Actions
Set MUI = (MUI + 1)
Set Point[1] = (Position of (Triggering unit))
Set Point[2] = (Target point of ability being cast)
Unit - Create 1 Arrow Dummy for (Owner of (Triggering unit)) at Point[1] facing (Angle from Point[1] to Point[2]) degrees
Trigger - Add to Activate Elunes Arrow <gen> the event (Unit - A unit comes within 130.00 of (Last created unit))
Unit - Set the custom value of (Last created unit) to MUI
Set Elunes_Arrow_Caster[(Custom value of (Last created unit))] = (Triggering unit)
Custom script: call RemoveLocation (udg_Point[1])
Custom script: call RemoveLocation (udg_Point[2])
Code:
Move Elunes Arrow
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set Group[1] = (Units of type Arrow Dummy)
Unit Group - Pick every unit in Group[1] and do (Actions)
Loop - Actions
Set Point[1] = (Position of (Picked unit))
Set Point[2] = (Point[1] offset by 10.00 towards (Facing of (Picked unit)) degrees)
Unit - Move (Picked unit) instantly to Point[2]
Set Elunes_Arrow_Range[(Custom value of (Picked unit))] = (Elunes_Arrow_Range[(Custom value of (Picked unit))] + 10.00)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Elunes_Arrow_Range[(Custom value of (Picked unit))] Greater than or equal to 3050.00
Then - Actions
Unit - Kill (Picked unit)
Unit - Remove (Picked unit) from the game
Special Effect - Create a special effect at Point[1] using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Custom script: call RemoveLocation (udg_Point[1])
Custom script: call RemoveLocation (udg_Point[2])
Custom script: call DestroyGroup (udg_Group[1])
Code:
Activate Elunes Arrow
Events
Conditions
Actions
Set Point[1] = (Position of (Triggering unit))
Set Group[1] = (Units within 150.00 of Point[1] matching ((Unit-type of (Matching unit)) Equal to Arrow Dummy))
Unit Group - Pick every unit in Group[1] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
((Triggering unit) is A structure) Equal to False
((Triggering unit) is Magic Immune) Equal to False
((Triggering unit) is A ground unit) Equal to True
((Triggering unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True
((Triggering unit) is alive) Equal to True
Then - Actions
Special Effect - Create a special effect at Point[2] using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Cause Elunes_Arrow_Caster[(Custom value of (Picked unit))] to damage (Triggering unit), dealing (90.00 x (Real((Level of Elunes Arrow for Elunes_Arrow_Caster[(Custom value of (Picked unit))])))) damage of attack type Spells and damage type Normal
Unit - Kill (Picked unit)
Unit - Remove (Picked unit) from the game
Unit - Create 1 Dummy for (Owner of (Picked unit)) at Point[1] facing Default building facing degrees
Unit - Add Elunes Arrow Stun to (Last created unit)
Unit - Set level of Elunes Arrow Stun for (Last created unit) to (Integer(Elunes_Arrow_Level[(Custom value of (Picked unit))]))
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Triggering unit)
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Else - Actions
Custom script: call DestroyGroup (udg_Group[1])
Custom script: call RemoveLocation (udg_Point[1])
Code:
Set Arrow Stun
Events
Time - Every 0.20 seconds of game time
Conditions
Actions
Set Group[1] = (Units of type Arrow Dummy)
Unit Group - Pick every unit in Group[1] and do (Actions)
Loop - Actions
Set Point[1] = (Position of (Picked unit))
Set Elunes_Arrow_Level[(Custom value of (Picked unit))] = (Elunes_Arrow_Level[(Custom value of (Picked unit))] + 0.80)
Custom script: call DestroyGroup (udg_Group[1])
Pretty fun ability to use, my favorite in DOTA, just one of those abilities that you need a little skill to use.
i could not find the ballista model file so i just imported it
have fun