- Joined
- May 28, 2015
- Messages
- 382
Well I have an ability for my Storm Panda which is called Lightning Dash.
Basically the Panda targets a location, creates a rolling panda dummy which is then dash through the targeted area only for the main hero to appear when the rolling panda dummy arrives at the destination point which then damage enemies upon arrival
The problem is my rolling panda dummy doesn't move.
Also lightning triggered effects are created while dashing similar to Storm Spirit's(DOTA) Ball Lightning ability but doesn't use mana every second of the dash.
Basically the Panda targets a location, creates a rolling panda dummy which is then dash through the targeted area only for the main hero to appear when the rolling panda dummy arrives at the destination point which then damage enemies upon arrival
The problem is my rolling panda dummy doesn't move.
Also lightning triggered effects are created while dashing similar to Storm Spirit's(DOTA) Ball Lightning ability but doesn't use mana every second of the dash.
-
Lightning Dash Main
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Lightning Dash
-
-
Actions
-
Set ld_caster = (Triggering unit)
-
Set ld_casterloc = (Position of ld_caster)
-
Set ld_createdloc = (Position of (Last created unit))
-
Set ld_targetloc = (Target point of ability being cast)
-
Unit - Create 1 Lightning Dash Dummy for (Owner of ld_caster) at ld_casterloc facing (Angle from ld_casterloc to ld_targetloc) degrees
-
Unit - Hide ld_caster
-
Lightning - Create a Chain Lightning - Primary lightning effect from source ld_casterloc to target ld_createdloc
-
Trigger - Turn on Lightning Dash Move <gen>
-
Custom script: call RemoveLocation(udg_ld_casterloc)
-
Custom script: call RemoveLocation(udg_ld_createdloc)
-
Custom script: call RemoveLocation(udg_ld_targetloc)
-
-
-
Lightning Dash Move
-
Events
-
Time - Every 0.02 seconds of game time
-
-
Conditions
-
Actions
-
Set ld_createdloc = (Position of (Last created unit))
-
Set ld_targetloc = (Target point of ability being cast)
-
Set ld_offset = (ld_createdloc offset by 20.00 towards (Angle from ld_createdloc to ld_targetloc) degrees)
-
Unit - Move (Last created unit) instantly to ld_offset
-
Special Effect - Create a special effect at ld_createdloc using Abilities\Weapons\Bolt\BoltImpact.mdl
-
Special Effect - Destroy (Last created special effect)
-
Lightning - Move (Last created lightning effect) to source ld_casterloc and target ld_createdloc
-
Custom script: call RemoveLocation(udg_ld_createdloc)
-
Custom script: call RemoveLocation(udg_ld_targetloc)
-
Set ld_distance = (Distance between ld_createdloc and ld_targetloc)
-
Set ld_group = (Units within 250.00 of ld_createdloc matching ((((Matching unit) belongs to an enemy of (Owner of ld_created)) Equal to True) and (((Matching unit) is alive) Equal to True)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
ld_distance Less than 5.00
-
-
Then - Actions
-
Unit - Unhide ld_caster
-
Special Effect - Create a special effect at ld_createdloc using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-
Special Effect - Destroy (Last created special effect)
-
Lightning - Destroy (Last created lightning effect)
-
Unit Group - Pick every unit in ld_group and do (Actions)
-
Loop - Actions
-
Unit - Cause ld_caster to damage (Picked unit), dealing ((Max mana of ld_caster) x 0.15) damage of attack type Spells and damage type Magic
-
-
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
Custom script: call DestroyGroup(udg_ld_group)
-
-