Triggered Immolation

Charapanga

New Member
Reaction score
46
Hi, i am trying to create a custom immolation (passive, always activated) that can damage locusts, since normal immo can't damage locusts...So i've tried "A unit comes withing 60 of unit" but failed....then i've tried picking every unit within 60 of a unit that has locust, but that lags alot! so..i come upon you The Helpers to save me from this dilema...

Oh and it has to be MUI or at least MPI for 6 players....
 

I_RULE_YOU

New Member
Reaction score
34
Does'nt normal Immolation already damage Locust units? Thats what I've heard. So just give your hero Permanent Immolation and see if it works.
 

WarLuvr3393

Hmmm...too many things to play (WoW, COD4, WC3)
Reaction score
54
You could create a 1 second timer which picks all units nearby. The reason why it may be lagging is because of memory leaks. I think the one that's leaking in this trigger is the group in which you pick the units.

When you pick units, the JASS native/BJ (I don't know which one) is:

GroupEnumUnitsInRange()

So you're using a group, which means you're going to have to destroy it and null it later on.
 

I_RULE_YOU

New Member
Reaction score
34
DK's Pride is right. It is not target able because it is not click able, but it can still be hit by AoE spells, such as Immolation.
 

darkbeer

Beer is Good!
Reaction score
84
if i rember right Pick every unit in range of .... doesnt pick locusts, you'll have to use pick every units of type or units owned by player (<-- not sure about this)
 

Charapanga

New Member
Reaction score
46
@WarLuvr3393: I've had no leaks at all, nulled all the handles, destroyed all the groups etc.
@I_RULE_YOU: Tried it, but it didn't work so that's why i posted it
@D.V.D: Locust only makes them untargetable, they are still vulnerable
@DK's Pride: You're correct, they are still vulnerable
@darkbeer: picks all units no matter of its visibility, size, health, abilities etc.

Still got no solution...
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
why is it so hard to answer?

Code:
e: every x seconds of game time
c:
a: set immolation_group = units in x range of (your unit) matching ((matching unit is alive equal to true) and (matching unit is a structure equal to false) and (matching unit belongs to an enemy of owner of (your unit)))
   pick every unit in immolation_group and do actions
      Loop
         cause (your unit) to damage picked unit blabla OR set picked unit's life to (life of picked unit) - x) if it doesn't work for locust, but that wont give you gold if you kill the locust)
         create a special effect attached to the overhead of picked unit using (the fiery effect)
         destroy last created special effect
   custom script: call DestroyGroup(udg_immolation_group)
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
well you said "Triggered Immolation" and this is the only way of making a triggered immolation... ofc you can make it MUI but it's a challenge in GUI xD
 

Charapanga

New Member
Reaction score
46
it would beacuse the function picks every single unit then the function needs to get the units hp and then modify it, and with the adition of the special effect it makes it laggy, and yes, that's probobaly the only way...but i'm sure its possible to make a MUI immolation that kills locusts...
 

darkbeer

Beer is Good!
Reaction score
84
I was right: just tested

Group pick units in range doesnt pick units that have locust!!!!!!

and for your trigger you may try sth. like this:

Code:
Events - Time every 0.5 seconds
Actions - 
set TempGroup = Units in playabale map area matching unit has immolation
UnitGroup - Pick every unit in TempGroup and do actions
 - set TempUnit = PickedUnit
 - set TempPoint2 = Position of TempUnit
 - set TempGroup2 = Units of type LOCUST
 - Pick units in TempGroup2 and do actions
      - set TempPoint = Position of picked unit
      - If distance between TempPoint and TempPoint2 <= 80 then
            - TempUnit damage picked unit ....
      - Custom script: call RemoveLocation(udg_TempLoc) .....
 - Custom script: call DestroyGroup(udg_TempGroup2)
 - Custom script: call RemoveLocation(udg_TempLoc2)
Custom script: call DestroyGroup( udg_TempGroup)

EDIT: thx acehart wasnt sure about the group thing :)
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> if I had 6 triggers running every second it would just lag

As long as you remove all leaks... no problem.

> not sure about this

Picking every unit in "units of type" or "units owned by player of type" will pick locusts too. (Note the "type" part).

> ... MUI ...

A periodic trigger? Given there's no triggering or other unit, what's the problem?

> don't know if you can use group loops inside each othere in GUI

Yes, you can. (Provided you don't loop the same group twice there)
 
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

      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