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

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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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