Naminator
Coming Back To Life
- Reaction score
- 76
Here's a spell I made. Call Storm of Bolts. How to implement into your map inside.
JASS/GUI: GUI
Lagless: Yep
Leakless: Probably
MUI: Don't think so.
Storm of Bolts:
Throw a hammer towards with great force, every enemy that came in his path will get stunned by another storm bolt. Each time increase AoE, Damage, Range and Speed.
Screenshot In game looks more better.
Code
Hope you like it! Thanks.
JASS/GUI: GUI
Lagless: Yep
Leakless: Probably
MUI: Don't think so.

Storm of Bolts:
Throw a hammer towards with great force, every enemy that came in his path will get stunned by another storm bolt. Each time increase AoE, Damage, Range and Speed.
Screenshot In game looks more better.

Code
Code:
Storm of Bolts
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Storm of Bolts
Actions
Unit Group - Remove all units from SoB_AddGroup
Set SoB_Timer = 0.03
Set SoB_Distance = 0.00
Set SoB_Caster = (Triggering unit)
Set SoB_Caster_Loc = (Position of SoB_Caster)
Set SoB_Point = (Target point of ability being cast)
Unit - Create 1 Dummy Effect for (Owner of SoB_Caster) at SoB_Caster_Loc facing SoB_Point
Set SoB_Dummy = (Last created unit)
Set SoB_Facing = (Facing of SoB_Dummy)
Trigger - Turn on Storm of Bolts Action <gen>
Countdown Timer - Start SoB_RepeatingTimer as a Repeating timer that will expire in SoB_Timer seconds
Custom script: call RemoveLocation (udg_SoB_Caster_Loc)
Custom script: call RemoveLocation (udg_SoB_Point)
Code:
Storm of Bolts Action
Events
Time - SoB_RepeatingTimer expires
Conditions
Actions
Set SoB_Dummy_Loc = (Position of SoB_Dummy)
Set SoB_Distance = (SoB_Distance + (18.00 + (6.00 x (Real((Level of Storm of Bolts for SoB_Caster))))))
Set SoB_Offset = (SoB_Dummy_Loc offset by (18.00 + (6.00 x (Real((Level of Storm of Bolts for SoB_Caster))))) towards SoB_Facing degrees)
Set SoB_Group = (Units within (100.00 + (40.00 x (Real((Level of Storm of Bolts for SoB_Caster))))) of SoB_Dummy_Loc matching (((Matching unit) belongs to an enemy of (Owner of SoB_Caster)) Equal to True))
Unit - Move SoB_Dummy instantly to SoB_Offset, facing SoB_Facing degrees
Special Effect - Create a special effect at SoB_Dummy_Loc using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in SoB_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in SoB_AddGroup) Equal to False
((Picked unit) has buff Stunned (Pause)) Equal to False
Then - Actions
Unit - Create 1 Dummy Unit for (Owner of SoB_Caster) at SoB_Dummy_Loc facing Default building facing degrees
Unit - Set level of Storm of Bolts Stun for (Last created unit) to (Level of Storm of Bolts Stun for SoB_Caster)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
Unit Group - Add (Picked unit) to SoB_AddGroup
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
SoB_Distance Greater than or equal to (400.00 + (200.00 x (Real((Level of Storm of Bolts for SoB_Caster)))))
Then - Actions
Countdown Timer - Pause SoB_RepeatingTimer
Unit - Add a 0.01 second Generic expiration timer to SoB_Dummy
Set SoB_Distance = 0.00
Trigger - Turn off (This trigger)
Else - Actions
Custom script: call RemoveLocation (udg_SoB_Dummy_Loc)
Custom script: call RemoveLocation (udg_SoB_Offset)
Custom script: call DestroyGroup (udg_SoB_Group)
Hope you like it! Thanks.
Attachments
-
14.3 KB Views: 463