Spell Fire Bomb

Nyph

Occasional News Reader
Reaction score
87
Fire Bomb

Gui = yes (with alot of custom script)
Mui = yes
Leakless = i think so
Lagless = only lags on slower computers

The caster harnesses his magical power and creates a giant ball of fire, which floats up, stops for a short while, and then drops straight down, creating a massive explosion.

Code:
FireBomb
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Fire Bomb 
    Actions
        Custom script:   local location temp
        Custom script:   local integer temp_LevelBomb
        Custom script:   local location array temp_Loc
        Custom script:   local location Targetloc
        Custom script:   local unit array fire1
        Custom script:   local unit fireball
        Custom script:   local unit firefield
        Custom script:   set Targetloc = GetSpellTargetLoc()
        Set temp_targloc = (Target point of ability being cast)
        Set temp_loc = (Position of (Triggering unit))
        Unit - Create 1 Fireball for (Owner of (Triggering unit)) at temp_loc facing (Facing of (Triggering unit)) degrees
        Unit - Set (Last created unit) movement speed to ((Distance between temp_loc and temp_targloc) / 2.00)
        Custom script:       set fireball = GetLastCreatedUnit()
        Unit - Order (Last created unit) to Move To temp_targloc
        Animation - Change (Last created unit) flying height to 1000.00 at 500.00
        Custom script:   call RemoveLocation( udg_temp_loc )
        Custom script:   call RemoveLocation( udg_temp_targloc )
        Wait 2.50 game-time seconds
        Custom script:       call SetUnitFlyHeightBJ( fireball, 0.00, 2000.00 )
        Wait 0.40 game-time seconds
        Custom script:       call RemoveUnit( fireball )
        Custom script:   set fireball = null
        Set FireNo = 0
        Set LevelBomb = (Level of Fire Bomb  for (Triggering unit))
        Set Angle = 0.00
        For each (Integer A) from 1 to (2 + LevelBomb), do (Actions)
            Loop - Actions
                Set FireNo = (FireNo + 1)
                Set Angle = (Angle + (360.00 / (2.00 + (Real(LevelBomb)))))
                Custom script:       call CreateNUnitsAtLoc( 1, 'u000', GetOwningPlayer(GetTriggerUnit()), Targetloc , udg_Angle )
                Custom script:   set temp = PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), 100.00, GetUnitFacing(GetLastCreatedUnit()))
                Custom script:   set fire1[udg_FireNo] = GetLastCreatedUnit()
                Unit - Add Fire1  to (Last created unit)
                Custom script:   set udg_Loc[udg_FireNo] = temp
                Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire Loc[FireNo]
                Custom script:   call RemoveLocation( temp )
        For each (Integer A) from 1 to (4 + (LevelBomb x 4)), do (Actions)
            Loop - Actions
                Set FireNo = (FireNo + 1)
                Custom script:       call CreateNUnitsAtLoc( 1, 'u000', GetOwningPlayer(GetTriggerUnit()), Targetloc , GetRandomReal(0, 360.00) )
                Custom script:   set temp = PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), GetRandomReal(0,400), GetUnitFacing(GetLastCreatedUnit()))
                Custom script:   set fire1[udg_FireNo] = GetLastCreatedUnit()
                Unit - Add Mini Fireballs  to (Last created unit)
                Custom script:   set udg_Loc[udg_FireNo] = temp
                Unit - Order (Last created unit) to Neutral Tinker - Cluster Rockets Loc[FireNo]
                Custom script:   call RemoveLocation(temp)
        Custom script:       call CreateNUnitsAtLoc( 1, 'u002', GetOwningPlayer(GetTriggerUnit()), Targetloc , GetRandomReal(0, 360.00) )
        Custom script:   set firefield = GetLastCreatedUnit()
        For each (Integer A) from 1 to (1 + (LevelBomb x 2)), do (Actions)
            Loop - Actions
                Set FireNo = (FireNo + 1)
                Custom script:       call CreateNUnitsAtLoc( 1, 'u000', GetOwningPlayer(GetTriggerUnit()), Targetloc , GetRandomReal(0, 360.00) )
                Custom script:   set temp = PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()), GetRandomReal(0,400), GetUnitFacing(GetLastCreatedUnit()))
                Custom script:   set fire1[udg_FireNo] = GetLastCreatedUnit()
                Unit - Add FireWave  to (Last created unit)
                Custom script:   set udg_Loc[udg_FireNo] = temp
                Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave Loc[FireNo]
                Custom script:   call RemoveLocation(temp)
        Set FireNo = (FireNo + 1)
        Custom script:       call CreateNUnitsAtLoc( 1, 'u000', GetOwningPlayer(GetTriggerUnit()), Targetloc , GetRandomReal(0, 360.00) )
        Custom script:   set fire1[udg_FireNo] = GetLastCreatedUnit()
        Unit - Add MainFire  to (Last created unit)
        Custom script:   set udg_Loc[udg_FireNo] = Targetloc
        Unit - Order (Last created unit) to Human Blood Mage - Flame Strike Loc[FireNo]
        Set FireNo = (FireNo + 1)
        Custom script:       call CreateNUnitsAtLoc( 1, 'u000', GetOwningPlayer(GetTriggerUnit()), Targetloc , GetRandomReal(0, 360.00) )
        Custom script:   set fire1[udg_FireNo] = GetLastCreatedUnit()
        Unit - Add Burned (Neutral Hostile) to (Last created unit)
        Unit - Set level of Burned (Neutral Hostile) for (Last created unit) to LevelBomb
        Unit - Order (Last created unit) to Neutral Pit Lord - Howl Of Terror
        Custom script:   set temp_LevelBomb = udg_LevelBomb
        For each (Integer A) from 1 to (9 + (LevelBomb x 7)), do (Actions)
            Loop - Actions
                Set FireNo = (FireNo + 1)
                Custom script:   set temp_Loc[udg_FireNo] = udg_Loc[udg_FireNo]
        Wait 0.20 game-time seconds
        Custom script:   set udg_LevelBomb = temp_LevelBomb
        Set FireNo = 0
        Custom script:   call RemoveUnit( fire1[udg_FireNo] )
        For each (Integer A) from 1 to (9 + (LevelBomb x 7)), do (Actions)
            Loop - Actions
                Set FireNo = (FireNo + 1)
                Custom script:   call RemoveUnit( fire1[udg_FireNo] )
                Custom script:   call RemoveLocation(temp_Loc[udg_FireNo])
                Custom script:   set fire1[udg_FireNo] = null
                Custom script:   set temp_Loc[udg_FireNo] = null
        Wait 4.80 game-time seconds
        Custom script:   call RemoveUnit( firefield )
        Custom script:   set firefield = null
        Custom script:   set temp = null

Screenshot:
 

Attachments

  • Screenshot.jpg
    Screenshot.jpg
    221.2 KB · Views: 319
  • FireBomb Map.w3x
    24 KB · Views: 210

U are a noob

Mega Super Ultra Cool Member
Reaction score
152
that better?

Yes. Wow dude I just checked out your spell its is amazing. Congratulations.

Only thing is I think that you should switch to JASS since you are using so much custom scripts.

Edit: Nevermind. Although this spell has amazing eye candy it needs a more useful us besides instant damage.
 

Nyph

Occasional News Reader
Reaction score
87
it does break channeling - lol thats probably not enough

edit: actually it might not i just realised
 

Nyph

Occasional News Reader
Reaction score
87
updated spell, it now lowers unit's damage in its radius, still haven't changed the code on main post yet

edit: its updated now and tootips fixed for buff
 

Tinki3

Special Member
Reaction score
418
Please name the trigger at least :p

Text in bold in the following lines leak (starting from top of trigger):

> Unit - Create 1 Fireball for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees

> Unit - Set (Last created unit) movement speed to ((Distance between (Position of (Triggering unit)) and (Target point of ability being cast)) / 2.00)

> Unit - Order (Last created unit) to Move To (Target point of ability being cast)

> Set Loc[FireNo] = ((Position of (Last created unit)) offset by 100.00 towards (Facing of (Last created unit)) degrees)

> Set Loc[FireNo] = ((Position of (Last created unit)) offset by (Random real number between 0.00 and 400.00) towards (Facing of (Last created unit)) degrees)

> Set Loc[FireNo] = ((Position of (Last created unit)) offset by (Random real number between 0.00 and 400.00) towards (Facing of (Last created unit)) degrees)

If you are unsure about how to clean these memory leaks (I think there are more in the trigger), please ensure yourself
by reading one of the few great tutorials on the subject in the Tutorial Repository.

The tooltip was a little unclear in places, that needs some fixing, too.

Great spell anyway.
I liked how it goes through different phases/forms of exploding.
 

Nyph

Occasional News Reader
Reaction score
87
thx tinki3, im fixing leaks and tooltip now

edit: fixed leaks and improved tooltip
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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