darkRae
Ueki Fan (Ueki is watching you)
- Reaction score
- 173
Splitbolts
Hurls an electric bolt that slowly homes on target enemy unit, dealing damage and stunning on impact. For every enemy hit the bolt splits into more bolts that deals damage and stuns enemy units.
Deals 35 damage and stuns for 1 second.
Level 1 - Splits 1 time.
Level 2 - Splits 2 times.
Level 3 - Splits 3 times.
GUI/JASS : GUI
MUI : YES
LEAKless : YES
LAG : When there's a lot of units (more units = more bolts) yes
Triggers
Code:
Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Splitbolts
Actions
-------- Variable Setup --------
Set SplitAmount = (Level of Splitbolts for (Triggering unit))
Set L = (Position of (Triggering unit))
Set RL = (Position of (Target unit of ability being cast))
Set FacingAngle = (Angle from L to RL)
-------- Make Splitbolt --------
Unit - Create 1 Splitbolt for (Owner of (Triggering unit)) at L facing FacingAngle degrees
Unit - Set the custom value of (Last created unit) to SplitAmount
Unit - Order (Last created unit) to Attack (Target unit of ability being cast)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-------- Leak Removal --------
Custom script: call RemoveLocation(udg_L)
Custom script: call RemoveLocation(udg_RL)
Code:
Split
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Splitbolt
Actions
-------- Variable Setup --------
Set L = (Position of (Triggering unit))
Set FacingAngle = (Facing of (Triggering unit))
Set SplitRange = 600.00
-------- Damage / Spells / Effects / Anything --------
Special Effect - Create a special effect at L using Abilities\Weapons\Bolt\BoltImpact.mdl
Special Effect - Destroy (Last created special effect)
Unit - Create 1 Dummy for (Owner of (Attacking unit)) at L facing FacingAngle degrees
Unit - Add Dummy Stun to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Triggering unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-------- Splitting Process --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Attacking unit)) Not equal to 0
Then - Actions
Set UG = (Units within SplitRange of L matching (((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Magic Immune) Not equal to True) and (((Matching unit) is Mechanical) Not equal to True))) and (((((Matching unit) is alive) Equal to True)
Unit Group - Pick every unit in UG and do (Actions)
Loop - Actions
Set RL = (Position of (Picked unit))
Set FacingAngle = (Angle from L to RL)
Unit - Create 1 Splitbolt for (Owner of (Attacking unit)) at L facing FacingAngle degrees
Unit - Set the custom value of (Last created unit) to ((Custom value of (Attacking unit)) - 1)
Unit - Order (Last created unit) to Attack (Picked unit)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_RL)
Custom script: call DestroyGroup(udg_UG)
Else - Actions
-------- Kill The Bolt --------
Unit - Kill (Attacking unit)
-------- Leak Removal --------
Custom script: call RemoveLocation(udg_L)
Screenshots
Import Instructions
-- Copy the Triggers and Variables
-- Copy the Splitbolt dummy unit
-- Copy the Splitbolts ability and buff
-- Copy the Dummy Stun ability
-- Enjoy
Last Words
-- number of splits can be customized
-- damage and stun cannot be leveled
-- will lag if there's a lot of units
-- no revival system just restart the game
-- I hope spells like this have never been submitted before
-- remember to give credits when you use this spell in your map
-- comments?