Naminator
Coming Back To Life
- Reaction score
- 76
Here's another DotA spell made by me. Elune's Arrow. It's all in GUI.
It containd a Game Message, so you can see how much the stun duration will be on the affected unit. You can deleted that Game Message.
Please tell me any leaks, or improvement, so I can improve this and added to the index.
Elune's Arrow
Fires an arrow to a location with deadly precision, dealing large damage and stunning the first unit it strikes. Stun duration increases based on how far the target is, ranging from 0.5 to 5 seconds.
Level 1 - Deals 90 damage.
Level 2 - Deals 180 damage.
Level 3 - Deals 270 damage.
Level 4 - Deals 360 damage.
Hope you like it!
It containd a Game Message, so you can see how much the stun duration will be on the affected unit. You can deleted that Game Message.
Please tell me any leaks, or improvement, so I can improve this and added to the index.
Elune's Arrow
Fires an arrow to a location with deadly precision, dealing large damage and stunning the first unit it strikes. Stun duration increases based on how far the target is, ranging from 0.5 to 5 seconds.
Level 1 - Deals 90 damage.
Level 2 - Deals 180 damage.
Level 3 - Deals 270 damage.
Level 4 - Deals 360 damage.
Code:
Elune Arrow
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Elune's Arrow
Actions
Set EA_Timer = 0.50
Set EA_Caster = (Triggering unit)
Set EA_Caster_Loc = (Position of EA_Caster)
Unit - Make EA_Caster face EA_Point over 0.01 seconds
Set EA_Point = (Target point of ability being cast)
Unit - Create 1 Elune's Arrow Dummy for (Owner of EA_Caster) at EA_Caster_Loc facing EA_Point
Set EA_Dummy = (Last created unit)
Set EA_Dummy_Loc = (Position of EA_Dummy)
Set EA_Face_Arrow = (Facing of EA_Dummy)
Trigger - Turn on Elune Arrow Action <gen>
Wait until ((EA_Timer Equal to 5.00) or ((Number of units in EA_Group) Equal to 1)), checking every 0.10 seconds
Unit - Create 1 Elune's Arrow Stun Dummy for (Owner of EA_Caster) at EA_Picked_Loc facing Default building facing degrees
Unit - Add Elune's Arrow Stun Dummy to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt EA_Picked
Trigger - Turn off Elune Arrow Action <gen>
Game - Display to (All players) for 1.00 seconds the text: (String(EA_Timer))
Wait EA_Timer seconds
Unit - Remove Stunned (Pause) buff from EA_Picked
Unit Group - Remove all units from EA_Group
Custom script: call RemoveLocation (udg_EA_Picked_Loc)
Custom script: call RemoveLocation (udg_EA_Caster_Loc)
Custom script: call RemoveLocation (udg_EA_Dummy_Loc)
Code:
Elune Arrow Action
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Set EA_Timer = (EA_Timer + 0.05)
Set EA_Dummy_Loc = (Position of EA_Dummy)
Set EA_Offset = (EA_Dummy_Loc offset by 50.00 towards EA_Face_Arrow degrees)
Unit - Move EA_Dummy instantly to EA_Offset, facing EA_Face_Arrow degrees
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 110.00 of EA_Dummy_Loc matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of EA_Caster)) Equal to True)))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in EA_Group) Equal to False
Then - Actions
Set EA_Picked = (Picked unit)
Set EA_Picked_Loc = (Position of EA_Picked)
Unit Group - Add EA_Picked to EA_Group
Special Effect - Create a special effect attached to the chest of EA_Picked using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Cause EA_Caster to damage EA_Picked, dealing (90.00 x (Real((Level of Elune's Arrow for EA_Caster)))) damage of attack type Spells and damage type Universal
Unit - Remove EA_Dummy from the game
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EA_Timer Equal to 5.00
Then - Actions
Special Effect - Create a special effect at EA_Dummy_Loc using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit - Remove EA_Dummy from the game
Trigger - Turn off (This trigger)
Else - Actions
Custom script: call RemoveLocation (udg_EA_Offset)
Custom script: call RemoveLocation (udg_EA_Dummy_Loc)
Hope you like it!