Help with a destructibles related trigger

Holla.

New Member
Reaction score
14
Okeydokes. Im still asking about these couple triggers
I have 3 spells i need to trigger. One: I need to trigger breath of fire to kill trees. Two: I need to trigger Shockwave to kill trees.
And three, which i have attempted and you can go from there: an imoolation spell that targets trees.

Heres the immolation spell:
Trigger:
  • Immolation
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Triggering unit) Equal to (Learning Hero)
      • (Unit-type of (Learning Hero)) Equal to Infernal Str
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of |cffb22222Immolation|r (Neutral Hostile 1) for (Learning Hero)) Equal to 1
        • Then - Actions
          • Destructible - Pick every destructible within 200.00 of (Position of (Casting unit)) and do (Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - 10.00))
          • Destructible - Pick every destructible within 200.00 of (Position of (Casting unit)) and do (Special Effect - Create a special effect at (Position of (Picked destructible)) using Environment\LargeBuildingFire\LargeBuildingFire2.mdl)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of |cffb22222Immolation|r (Neutral Hostile 1) for (Learning Hero)) Equal to 2
            • Then - Actions
              • Destructible - Pick every destructible within 200.00 of (Position of (Casting unit)) and do (Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - 15.00))
              • Destructible - Pick every destructible within 200.00 of (Position of (Casting unit)) and do (Special Effect - Create a special effect at (Position of (Picked destructible)) using Environment\LargeBuildingFire\LargeBuildingFire2.mdl)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of |cffb22222Immolation|r (Neutral Hostile 1) for (Learning Hero)) Equal to 3
                • Then - Actions
                  • Destructible - Pick every destructible within 200.00 of (Position of (Casting unit)) and do (Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - 20.00))
                  • Destructible - Pick every destructible within 200.00 of (Position of (Casting unit)) and do (Special Effect - Create a special effect at (Position of (Picked destructible)) using Environment\LargeBuildingFire\LargeBuildingFire2.mdl)
                • Else - Actions
                  • Destructible - Pick every destructible within 200.00 of (Position of (Casting unit)) and do (Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - 25.00))
                  • Destructible - Pick every destructible within 200.00 of (Position of (Casting unit)) and do (Special Effect - Create a special effect at (Position of (Picked destructible)) using Environment\LargeBuildingFire\LargeBuildingFire2.mdl)


And this:
Trigger:
  • Immo timer
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Trigger - Run Immolation <gen> (checking conditions)


I dont know what to do from here, im stuck.

I would also like help with the shockwave and breath of fire abilities as i have no idea how to do them.
Thanks
 

jig7c

Stop reading me...-statement
Reaction score
123
in the immolation ability, can't you just set the targets allowed to "trees"
so then, all you need the trigger is for the special effects, and also your trigger has few memory leaks!
 

Holla.

New Member
Reaction score
14
Arghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

firstly, of course i tried setting it to hurt trees, but apparently only a couple spells work with that. Flamestrike, kahboom, that kind of stuff.

and whats a memory leak! HELP dont just tell me whats wrong!

Oh yeah, i forgot about Destroying the special effects. But i dont know how to impliment them anyway..
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
its pretty simple.
each second you run your first trigger checking conditions.

as we can see the conditions on your second trigger are:
Trigger:
  • (<span style="color: Red">Triggering unit</span>) Equal to (Learning Hero)
    • (Unit-type of (<span style="color: Red">Learning Hero</span>)) Equal to Infernal Str

there aint any triggering unit nor a learning hero. conditions are not met. trigger wont run.

Edit: these are memory leaks.
 

jig7c

Stop reading me...-statement
Reaction score
123
i'll help...

but if you set immolation to target trees, it won't hurt them? try that

Trigger:
  • Immolation
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Unit-type of (Triggering Unit)) Equal to Infernal Str
      • Ability being cast equal to Immolation
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of |cffb22222Immolation|r (Neutral Hostile 1) for (Triggering Unit)) Equal to 1
          • Then - Actions
            • Set Point = (Position of (Triggering Unit))
            • Set DestGroup = Destructible within 200.00 of (Point)
            • Destructible - Pick every destructible in DestGroup and do (Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - 10.00))
            • Destructible - Pick every destructible in DestGroup and do
              • Set Point2 = Position of Picked Destructible
            • Special Effect - Create a special effect at Point2 using Environment\LargeBuildingFire\LargeBuildingFire2.mdl)
            • Special Effect - Destroy (Last created special effect)
          • Else - Actions
      • Custom Script: call RemoveLocation (udg_Point)
      • Custom Script: call RemoveLocation (udg_Point2)
      • Custom Script: call DestroyGroup (udg_DestGroup) (not sure on this one)


make all the if/then/else look like that!
and make each if/then/else separate, don't add it after the Else Action....

make variables your friend, use them... i have 3 variables in the trigger,
2 are Point variables and other is a destrutible group!

i don't have world editor on this computer, so its hard for me to do the exact trigger
 

Holla.

New Member
Reaction score
14
@jig: I dont actually know what you did

@accname: Yeah i thought it was to do with that but heres the thing, i dont know how to make it work, or how to do the event. The event is the problem
 

jig7c

Stop reading me...-statement
Reaction score
123
@jig: I dont actually know what you did

@accname: Yeah i thought it was to do with that but heres the thing, i dont know how to make it work, or how to do the event. The event is the problem

i was still editing your trigger! :cool:
 

Holla.

New Member
Reaction score
14
so can someone show me how to put it all together and have it actually do something?
 

jig7c

Stop reading me...-statement
Reaction score
123
i already did in the previous trigger!
and did you try setting the target to trees only in the immolation ability!

here is the full trigger!
Trigger:
  • <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"><div class="bbCodeBlock-title">Trigger:</div><div class="wc3trigger"><ul class="wc3" id="wc3_5">
    • <li class="lastopen"><span class="default">Immolation</span>
    • <ul>
    • <li class="open"><span class="events">Events</span>
    • <ul>
    • <li class="lasttree"><span class="unit">Unit - A unit starts the effect of an ability</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="conditions">Conditions</span>
    • <ul>
    • <li class="tree"><span class="default">(Unit-type of (Triggering Unit)) Equal to Infernal Str</span></li>
    • <li class="lasttree"><span class="default">Ability being cast equal to Immolation</span></li>
    • </ul>
    • </li>
    • <li class="lastopen"><span class="actions">Actions</span>
    • <ul>
    • <li class="tree"><span class="set">Set Point = (Position of (Triggering Unit))</span></li>
    • <li class="tree"><span class="set">Set DestGroup = Destructible within 200.00 of (Point)</span></li>
    • <li class="open"><span class="destructible">Destructible - Pick every destructible in DestGroup and do</span>
    • <ul>
    • <li class="lasttree"><span class="set">Set Point2 = Position of Picked Destructible</span></li>
    • </ul>
    • </li>
    • <li class="lasttree"><span class="default">Trigger - Run Immolation2 (ignoring conditions)</span></li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </div></div>
    • <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"><div class="bbCodeBlock-title">Trigger:</div><div class="wc3trigger"><ul class="wc3" id="wc3_6">
    • <li class="lastopen"><span class="default">Immolation2</span>
    • <ul>
    • <li class="open"><span class="events">Events</span>
    • <ul>
    • <li class="lasttree"><span class="default">Time - Every 1.00 seconds of game</span></li>
    • </ul>
    • </li>
    • <li class="tree"><span class="conditions">Conditions</span></li>
    • <li class="lastopen"><span class="actions">Actions</span>
    • <ul>
    • <li class="open"><span class="if">If (All Conditions are True) then do (Then Actions) else do (Else Actions)</span>
    • <ul>
    • <li class="open"><span class="if">If - Conditions</span>
    • <ul>
    • <li class="lasttree"><span class="default">(Level of |cffb22222Immolation|r (Neutral Hostile 1) for (Triggering Unit)) Equal to 1</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="ifthen">Then - Actions</span>
    • <ul>
    • <li class="tree"><span class="destructible">Destructible - Pick every destructible in DestGroup and do (Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - 10.00))</span></li>
    • <li class="tree"><span class="specialeffect">Special Effect - Create a special effect at Point2 using Environment\LargeBuildingFire\LargeBuildingFire2.mdl)</span></li>
    • <li class="lasttree"><span class="specialeffect">Special Effect - Destroy (Last created special effect)</span></li>
    • </ul>
    • </li>
    • <li class="lasttree"><span class="ifelse">Else - Actions</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="if">If (All Conditions are True) then do (Then Actions) else do (Else Actions)</span>
    • <ul>
    • <li class="open"><span class="if">If - Conditions</span>
    • <ul>
    • <li class="lasttree"><span class="default">(Level of |cffb22222Immolation|r (Neutral Hostile 1) for (Triggering Unit)) Equal to 2</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="ifthen">Then - Actions</span>
    • <ul>
    • <li class="tree"><span class="destructible">Destructible - Pick every destructible in DestGroup and do (Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - 15.00))</span></li>
    • <li class="tree"><span class="specialeffect">Special Effect - Create a special effect at Point2 using Environment\LargeBuildingFire\LargeBuildingFire2.mdl)</span></li>
    • <li class="lasttree"><span class="specialeffect">Special Effect - Destroy (Last created special effect)</span></li>
    • </ul>
    • </li>
    • <li class="lasttree"><span class="ifelse">Else - Actions</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="if">If (All Conditions are True) then do (Then Actions) else do (Else Actions)</span>
    • <ul>
    • <li class="open"><span class="if">If - Conditions</span>
    • <ul>
    • <li class="lasttree"><span class="default">(Level of |cffb22222Immolation|r (Neutral Hostile 1) for (Triggering Unit)) Equal to 3</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="ifthen">Then - Actions</span>
    • <ul>
    • <li class="tree"><span class="destructible">Destructible - Pick every destructible in DestGroup and do (Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - 20.00))</span></li>
    • <li class="tree"><span class="specialeffect">Special Effect - Create a special effect at Point2 using Environment\LargeBuildingFire\LargeBuildingFire2.mdl)</span></li>
    • <li class="lasttree"><span class="specialeffect">Special Effect - Destroy (Last created special effect)</span></li>
    • </ul>
    • </li>
    • <li class="lasttree"><span class="ifelse">Else - Actions</span></li>
    • </ul>
    • </li>
    • <li class="tree"><span class="default">Custom Script: call RemoveLocation (udg_Point)</span></li>
    • <li class="tree"><span class="default">Custom Script: call RemoveLocation (udg_Point2)</span></li>
    • <li class="lasttree"><span class="default">Custom Script: call DestroyGroup (udg_DestGroup) (not sure on this one)</span></li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </div></div>
    • <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"><div class="bbCodeBlock-title">Trigger:</div><div class="wc3trigger"><ul class="wc3" id="wc3_7">
    • <li class="lastopen"><span class="default">Immolation3</span>
    • <ul>
    • <li class="open"><span class="events">Events</span>
    • <ul>
    • <li class="lasttree"><span class="default">A unit stops the effect of an ability</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="conditions">Conditions</span>
    • <ul>
    • <li class="tree"><span class="default">Ability being cast Immolation</span></li>
    • <li class="lasttree"><span class="default">(Unit-type of (Triggering Unit)) Equal to Infernal Str</span></li>
    • </ul>
    • </li>
    • <li class="lastopen"><span class="actions">Actions</span>
    • <ul>
    • <li class="lasttree"><span class="default">Trigger - Turn off &amp;lt;Immolation2&amp;gt;</span></li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </div></div>
    • let me ask you this, can you turn immolation on/off?
    • Edit: Leave immolation2 trigger initially on, but not enabled!
 

millz-

New Member
Reaction score
25
Dude, didn't you check your previous thread? I've already posted a demo map with all 3 spells working. Only thing was, I coded the Breath of Fire in JASS, because it's a pain to do all the calculations in GUI.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 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

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top