Hero's Aren't reviving

ianu74

New Member
Reaction score
8
My heros aren't reviving when i mass kill creeps.
Code:
Revival Trigger
    Events
        Unit - A unit Dies
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Wait 2.00 seconds
        Hero - Instantly revive (Triggering unit) at (Center of Region 000 <gen>), Show revival graphics
Is there anything wrong with it..?
 
1

1337D00D

Guest
2 seconds later the triggering unit is some other unit you killed.
 
S

Sunny_D

Guest
afaik, "triggering unit" is created new for every trigger run, so its ok that way.

btw, you are removing the heroes in some other trigger maybe? once removed the heroes cant be revived anymore...
 

ianu74

New Member
Reaction score
8
Still when i mass kill creeps and my hero dies , sometimes my hero doesn't revives. Why is that so..?
 
1

1337D00D

Guest
Because some other unit dies during that two seconds, and triggering unit becomes that unit, not the hero anymore.

It would work if you scrap the wait.
 
S

Sunny_D

Guest
if im not completely blind, this trigger above is 100% waterproof (but yet not leak free ;) ). this trigger cant be the reason in my opinion...

now did you remove units in another trigger?

---------------

Because some other unit dies during that two seconds, and triggering unit becomes that unit, not the hero anymore.

Conditions
((Triggering unit) is A Hero) Equal to True
 

ianu74

New Member
Reaction score
8
i don't have any other triggers Concerning a Unit dying in my map, nor units being removed. Still, my hero doesn't revive if he dies when i mass kill creeps or enemy heros.
 

Duwenbasden

Ver 6 CREATE energy AS SELECT * FROM u.energy
Reaction score
165
try putting the dying unit in a variable, and revive the unit that way.
 

Duwenbasden

Ver 6 CREATE energy AS SELECT * FROM u.energy
Reaction score
165
use an array to store each hero in its unique slot.

OR

use a queue. :eek:
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
When your hero dies, and after 2 seconds (or some seconds), is the HERO ICON (upper Left) still there? Yes? Good, even if it is not REVIVED? wait like 30 seconds, and the iCONE upper left is STILL THERE?. Then delete that trigger you have there and create a new one, what to change? nothing! ;)
And yes, try change out triggering with dying (even it should have no effect...). Thats what I would have done, if the icon is there ofc.

IF the Icon is NOT there, the Hero has been removed, meaning some other trigger removes it, voila!;)
Or try restart WE, then run the map again.
PS: Show us all triggers that has the "A UNIT DIES" event please...
Cheerio!;)
Edit; attach the map, and I will look at it, if you want to.
 

ianu74

New Member
Reaction score
8
PS: Show us all triggers that has the "A UNIT DIES" event please...
i already said i didn't have any more triggers with A unit dies
i don't have any other triggers Concerning a Unit dying in my map, nor units being removed. Still, my hero doesn't revive if he dies when i mass kill creeps or enemy heros.
Still, i'm trying out your suggestion.
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
No offence, but I do believe you are not telling the truth here, since that trigger works 10000000% sure...We all (on TH) have used it 1000 times each, if not more, so... Show us the whole trigger? _ATTACH THE MAP_ (not screaming it, saying it<3)
Cheerio

Edit; if you have 0 other triggers with that event, what kind of event do you got? Like "A unit is attacked/Starts the effect of an ability/Finishes casting/........."
 

ianu74

New Member
Reaction score
8
Thanks Duwen, Your idea worked. I tried ManyTimes's suggestion but can't:confused: anyway, the problem's gone.
 
General chit-chat
Help Users
  • 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
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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