Trigger help - travelling fireball spell

FMAlchemist

New Member
Reaction score
4
ive been wokring on this for almost a whole day nows, and well, i cant make it ><

what im trying to do: a hero shoots a fireball in a direction. fireball travels for 1sec, and then blows up,

But

if fireball encounters a unit in its way, it will blow up, delaing damage.

i cannot trigger this, all ive got is the fireball to fly to a certain point,

~~ how do i make it travel in the direction of the ability being cast. no mater how far or close it is, and, how do i make it explaode once it hits a unit .

PLZ help.
 

LurkerAspect

Now officially a Super Lurker
Reaction score
118
To make it explode, give it the ability "AOE damage upon death".

This trigger should make it move and explode after a while:
Code:
Exploding fireball
    Events
        Time - Every 0.10 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units of type Fireball) and do (Actions)
            Loop - Actions
                Unit - Order (Picked unit) to Move To ((Position of (Picked unit)) offset by 100.00 towards (Facing of (Picked unit)) degrees)
                If ((Number of units in (Units within 300.00 of (Position of (Picked unit)))) Greater than or equal to 1) then do (Unit - Kill (Picked unit)) else do (Do nothing)
                Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 10)
                If ((Custom value of (Picked unit)) Greater than or equal to 100) then do (Unit - Kill (Picked unit)) else do (Do nothing)
 

Holla.

New Member
Reaction score
14
just an idea. maybe you could do somthing with stampede. like use the spell it shoots a lizard(fireball) out and it will explode but that may not work :/
 

FMAlchemist

New Member
Reaction score
4
herm, this trigger seems very limited.

wisp = the fireball itself
Wisp Ex = the dummy unit created at the position of the targeted area.

(Wisp Ex orriginally made, cuz if the hero casted close, the fireball will explode on encounter with with the dummy, so if u casted next to urself, it will explode in ur face)

Code:
Fire hero spell
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Fireball 
    Actions
        Unit - Create 1 Wisp for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (500.00, 0.00)) facing Default building facing degrees
        Set main_attack[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
        Unit - Create 1 Ex Wisp for (Owner of (Triggering unit)) at (Target point of ability being cast) facing Default building facing degrees
        Set main_attack_target[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
        Unit - Make main_attack[(Player number of (Owner of (Triggering unit)))] Invulnerable
        Unit - Hide main_attack_target[(Player number of (Owner of (Triggering unit)))]
        Unit - Order main_attack[(Player number of (Owner of (Triggering unit)))] to Move To (Target point of ability being cast)
        -------- Fire Spell Startup --------
        Trigger - Add to Fire hero spell Ex <gen> the event (Unit - A unit comes within 100.00 of main_attack[(Player number of (Owner of (Triggering unit)))])
        -------- Vision Start up --------
        Wait 1.00 seconds
        Unit - Explode main_attack[(Player number of (Owner of (Triggering unit)))]
        Special Effect - Create a special effect at (Position of main_attack[(Player number of (Owner of (Triggering unit)))]) using Abilities\Spells\Human\Feedback\SpellBreakerAttack.mdl
        Set player_spell_special_Effect[(Player number of (Owner of (Triggering unit)))] = (Last created special effect)
        Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 100.00 at (Position of main_attack[(Player number of (Owner of (Triggering unit)))]), dealing 100.00 damage of attack type Spells and damage type Fire
        Unit - Explode main_attack_target[(Player number of (Owner of (Triggering unit)))]
        Wait 0.50 seconds
        Special Effect - Destroy player_spell_special_Effect[(Player number of (Owner of (Triggering unit)))]


when encountering with a unit.

Code:
Fire hero spell Ex
    Events
    Conditions
        (Triggering unit) Equal to (Triggering unit)
    Actions
        Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 100.00 at (Position of main_attack[(Player number of (Owner of (Triggering unit)))]), dealing 50.00 damage of attack type Spells and damage type Fire
        Unit - Explode main_attack[(Player number of (Owner of (Triggering unit)))]
        Unit - Explode main_attack_target[(Player number of (Owner of (Triggering unit)))]
        Special Effect - Create a special effect at (Position of main_attack[(Player number of (Owner of (Triggering unit)))]) using Abilities\Spells\Human\Feedback\SpellBreakerAttack.mdl
        Set player_spell_special_Effect[(Player number of (Owner of (Triggering unit)))] = (Last created special effect)
        Wait 0.50 seconds
        Special Effect - Destroy player_spell_special_Effect[(Player number of (Owner of (Triggering unit)))]

the tirgger seems very complex for my likeing, and get real confsuing. yet, i have no idea how to fix. ~~ plz help
 

vypur85

Hibernate
Reaction score
803
Code:
        Unit - Create 1 Wisp for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (500.00, 0.00)) facing Default building facing degrees
        Set main_attack[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
        Unit - Create 1 Ex Wisp for (Owner of (Triggering unit)) at (Target point of ability being cast) facing Default building facing degrees
        Set main_attack_target[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
        Unit - Make main_attack[(Player number of (Owner of (Triggering unit)))] Invulnerable
        Unit - Hide main_attack_target[(Player number of (Owner of (Triggering unit)))]
        Unit - Order main_attack[(Player number of (Owner of (Triggering unit)))] to Move To (Target point of ability being cast)
        -------- Fire Spell Startup --------
        Trigger - Add to Fire hero spell Ex <gen> the event (Unit - A unit comes within 100.00 of main_attack[(Player number of (Owner of (Triggering unit)))])
        -------- Vision Start up --------
        Wait 1.00 seconds
        Unit - Explode main_attack[(Player number of (Owner of (Triggering unit)))]
        Special Effect - Create a special effect at (Position of main_attack[(Player number of (Owner of (Triggering unit)))]) using Abilities\Spells\Human\Feedback\SpellBreakerAttack.mdl
        Set player_spell_special_Effect[(Player number of (Owner of (Triggering unit)))] = (Last created special effect)
        Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 100.00 at (Position of main_attack[(Player number of (Owner of (Triggering unit)))]), dealing 100.00 damage of attack type Spells and damage type Fire
        Unit - Explode main_attack_target[(Player number of (Owner of (Triggering unit)))]
       [B] Wait 0.50 seconds[/B]
        Special Effect - Destroy player_spell_special_Effect[(Player number of (Owner of (Triggering unit)))]

Why use wait to destroy the special effect? I think you can destroy it immediately. Anyway.. Instead of using wait 1 second, just give your dummy a 1 second expiration timer. Then in another trigger with the event 'A unit Dies', you trigger the explosion. As for the adding unit to another trigger thing, im not too sure. Im kinda busy now, or else i'll happily try it for you :p.

(I think one of the reason your trigger did not work was because of the waits)
 

FMAlchemist

New Member
Reaction score
4
Yeah, i originally had an expiration timer. but then i wanted that if it doesnt hit anything, it still does damage.

but the problem is mainly how it goes through units without exploding.

Code:
Trigger - Add to Fire hero spell Ex <gen> the event (Unit - A unit comes within 100.00 of main_attack[(Player number of (Owner of (Triggering unit)))])

Code:
Fire hero spell Ex
    Events
    Conditions
        (Triggering unit) Not Equal to (Triggering unit)
    Actions
        Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 100.00 at (Position of main_attack[(Player number of (Owner of (Triggering unit)))]), dealing 50.00 damage of attack type Spells and damage type Fire
        Unit - Explode main_attack[(Player number of (Owner of (Triggering unit)))]
        Unit - Explode main_attack_target[(Player number of (Owner of (Triggering unit)))]

I have a main_attack var and main_attack_target var, so if main_attack comes in contact with main_attack_target, it will explode. so if u target a spot closer to u, within the attack time frame, it will explode.

ps. If theres a turtorial for this, please link. i really want to get this spell down packed.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 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

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top