Spell Splitbolts

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
81tdm5j.jpg

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

73e2r7a.jpg
8aa1hmc.jpg

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 :p 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?
 

Attachments

  • (1)SplitboltsX.w3x
    30.7 KB · Views: 468

Arcane

You can change this now in User CP.
Reaction score
87
This is what, a single target homing spell which splits into X bolts when it hits the target?

Edit: Oh, and the bolts split from the first target split more?
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Why don't you just download the map and see how it works yourself? XD
Yes and yes.
 

Arcane

You can change this now in User CP.
Reaction score
87
I'm too lazy.
Your tooltip is confusing BTW:

Instead of:
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.

Put:
Hurls a bolt of electricity at the target enemy unit, dealing damage and stunning on impact. Upon striking the target, the bolt splits into several more bolts. They shoot outwards and continue the cycle.
 

The Undaddy

Creating with the power of rage
Reaction score
55
What,no revival system? :mad:
jk Cool spell,I like shiny electric balls :p.One problem,if there are no units,the balls seem to be stupid enough to stay there for all eternity.I think adding an expiration timer will help them explode.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
? I thought I gave Expiration already?
Lemme re-check and fix it.

And yes, no revival system :p
Just restart the game, it won't take you 1 minute.
 

The Undaddy

Creating with the power of rage
Reaction score
55
Hmm,seems you did add an expiration time,but,casting the spell a few times (more like 7) and about 15 balls stood there and didn't kaboom,how come?
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
That's what it comes to deal with MUI issue.

Just add some expected cooldown to the spell will do.
 

vypur85

Hibernate
Reaction score
803
Somehow there is still weakness in the dummy unit. What if the target ability being cast dies before the dummy reaches the target? The dummy will stop and wait for 3 seconds before it disappears. Or what if the target runs away or blinks away while the dummy is travelling? It will die in 3 seconds before the dummy reaches the target to attack it. Anyway, cool spell though :).
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
That issue might need to be fix by using some sort of particle system.

Make the dummy slide and create a trigger and register its event as A unit come in range of x unit.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Half an hour I left the forum and some people found some bugs already :p

> Or what if the target runs away or blinks away while the dummy is travelling?

We can say that it is its maximum range :p

> Make the dummy slide and create a trigger and register its event as A unit come in range of x unit.

This has a potential to lag the game because as you can see there are a lot of bolts in there.

> Hmm,seems you did add an expiration time,but,casting the spell a few times (more like 7) and about 15 balls stood there and didn't kaboom,how come?

O_O
I honestly don't know, because as you can see in the triggers I have posted, I did give expiration timers to the bolts.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Bump.
Returning this to the first page if it's okay.

What are the requirements for a spell to be approved?
 

Flare

Stops copies me!
Reaction score
662
(Quoted from Tink3)
When all conditions are true:
- Code is leakless
- Code is decently optimised
- <Spell> comes with implementation instructions
- <Spell's> tooltips are up-to-scratch
- <Spell> does not lag too much
- <Spell> has to fully work, and must not "bug" at anytime

Hope that answers your question ^^

Nice spell btw, looks cool from the screenies (lightning is fun :])
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
-- It is leakless.
-- I don't know how far it must be optimized.
-- Yes, it does. It's enough, right?
-- What does "up-to-scratch" mean? o_O
-- It doesn't lag.
-- It works.
 

Flare

Stops copies me!
Reaction score
662
up-to-scratch would be that they give a decent description of what the spell does which ur spell has

your import instructions look fine, seems to have everything covered

i dont see how ur code cud further be shortened/improved in any way, but thats for the mods to decide in the end ^^

and i havent actually tried the demo map, so i cant really tell if it bugs at any time ^^
 
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

      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