Spell Storm of Bolts

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
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

Tinki3

Special Member
Reaction score
418
Nice one ;).

In the "Storm of Bolts" trigger, remove the line "Set SoB_Dummy_Loc = (Position of SoB_Dummy)", as it's never used in that trigger. You also need to remove the "SoB_Point" in this trigger with Custom Script:
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)

The periodic trigger seems fine.
I noticed that units were not stunned instantly when they were "hit" by the main bolt.
For example, at level 4, since the bolt is going so fast, enemies were not hit until the bolt "died".
I thought that this was a bit too sloooow, and it's due to the fact the your dummy unit(s) have animation backswings and/or cast points.
Try setting those to things to 0.00 via object editor. It helped alot when I tried. It reduces the time units take to cast spells.

Good work!
 

NapaHero

Back from the dead...
Reaction score
43
Woaahh, nice one there Naminator. This one reminds me of a spell that I tried to make, but it failed completely :)P).
 

Hatebreeder

So many apples
Reaction score
381
The Hammers don't look very decent IMO.
Maybe change the cast time of the Hammers cast to a Negative Value? I'm not even sure if this would even work, but it's just something off the top of my Head.
Nice Spell nonetheless =)
The way the Bolt moves is absolutly sexy =)
 

Naminator

Coming Back To Life
Reaction score
76
The Hammers don't look very decent IMO.
Maybe change the cast time of the Hammers cast to a Negative Value? I'm not even sure if this would even work, but it's just something off the top of my Head.
Nice Spell nonetheless =)
The way the Bolt moves is absolutly sexy =)
Thanks Hatebreeder!. Negative values I think it won't work.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I reorganized the forums somewhat but I doubt anyone would notice
  • The Helper The Helper:
    Happy Friday!
    +1
  • The Helper The Helper:
    Happy Saturday!
    +1
  • The Helper The Helper:
    The forum software says we have 554 members online now. We did not have that many unique visitors the whole day today. Too many bots and the disconnect between the forum counts and the stats.
  • Varine Varine:
    Currently it says 413 guests and 2 members
    +1
  • Varine Varine:
    Aww
  • The Helper The Helper:
    That is going to be mostly bots
  • The Helper The Helper:
    527 (members: 2, guests: 525)
  • The Helper The Helper:
    Happy Saturday!
    +1
  • V-SNES V-SNES:
    Happy Saturday!
    +1
  • The Helper The Helper:
    622 (members: 2, guests: 620)
  • The Helper The Helper:
    666 (members: 4, guests: 662) :)
    +1
  • Varine Varine:
    609 (members: 4, guests: 605)
  • The Helper The Helper:
    I was posting that last one because the 666 users online :)
    +1
  • The Helper The Helper:
    Happy Wednesday Night!
    +1
  • The Helper The Helper:
    Happy Thursday!
    +1
  • The Helper The Helper:
    Marathon watching The Expanse!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    leaving for the weekend in San Antonio will be gone until Sunday afternoon
    +1
  • The Helper The Helper:
    and I am back :)
    +1
  • The Helper The Helper:
    Happy Tuesday!
    +1

    The Helper Discord

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top