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.

BTNStormBolt.gif

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.
stormofboltsla1.jpg

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

  • [Spell]-Storm of Bolts.w3x
    14.3 KB · Views: 514
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!
 
Woaahh, nice one there Naminator. This one reminds me of a spell that I tried to make, but it failed completely :)P).
 
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 =)
 
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.
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/
  • The Helper The Helper:
    Happy Thursday!
  • Ghan Ghan:
    I'm not so sure, there's still a lot of Thursday left for it to become unhappy.
    +3
  • The Helper The Helper:
    still a few hours
  • The Helper The Helper:
    Its Friday!!!!
    +1
  • Ghan Ghan:
    Thursday 7/10 would Thursday again
    +3
  • The Helper The Helper:
    New forum coming soon going to be for my friend Saylor who is blind and he is doing motivational speaking and has an internet radio show and podcast. I am going to put a forum to promote him and other inspirational speaker stuff going to have some good stuff in it.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top