Setting Level of Ability for Hero that is currently *dead*

Bird

Ultra Cool Member
Reaction score
29
I am having Map crash issues, and they *always* occur when a Hero is dead... and it is becoming apparent to me that it has to do with various Spell/Item triggers I have set up... example...

The problem in this example, I believe, is that when the Hero kills something, but then himself soon dies after... when the trigger goes to remove the bonus 5 seconds later, the map crashes.

Is this a known bug?

Trigger:
  • Deathpoise
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Killing unit) has an item of type Mask of Death) Equal to True
    • Actions
      • Unit - Set level of 06 - Presence (Universal) for (Killing unit) to (1 + (Level of 06 - Presence (Universal) for (Killing unit)))
      • Wait 5.00 seconds
      • Unit - Set level of 06 - Presence (Universal) for (Killing unit) to (-1 + (Level of 06 - Presence (Universal) for (Killing unit)))


And here is the crash Log... note that SCae is the value of the Spell "Presence".
Code:
0012E520: 00 00 00 00  00 00 00 00  00 00 00 00  4F 3F 04 6F  ............O?.o
0012E530: 38 E5 12 00  84 42 9F 1A  00 00 5C 44  BC 7D 3C 6F  8....B....\D.}<o
0012E540: BC E5 12 00  0C E6 12 00  1D 9D 95 6F  C8 DC 45 6F  ...........o..Eo
0012E550: EE 09 10 00  65 61 43 53  04 00 00 00  B4 DC 45 6F  ....eaCS......Eo
0012E560: 04 00 00 00  AC DC 45 6F  18 72 06 09  88 00 50 1C  ......Eo.r....P.
0012E570: 08 00 00 00  02 C7 D0 72  C4 E5 12 00  F8 19 D8 72  .......r.......r
0012E580: 40 17 B3 01  0A E8 12 00  E6 C2 45 6F  88 00 50 1C  @.........Eo..P.
0012E590: C0 E5 12 00  A3 AB 45 6F  8A 47 C6 E3  00 00 00 00  ......Eo.G......
0012E5A0: C0 E5 12 00  E8 E5 12 00  C8 0E 84 6F  00 00 00 00  ...........o....
0012E5B0: EE 09 10 00  65 61 43 53  04 00 00 00  00 00 00 00  ....eaCS........

etc etc
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Yes, known. I've encountered it for auras and spellbooks; other abilities seem OK, I think...
 

Bird

Ultra Cool Member
Reaction score
29
^ It's an Aura *inside* of a Spellbook, in fact.

Double whammy? LOL.

So I would basically need to... make a conditional that says.. if hes Dead... don't remove the bonus... and remove the bonus upon respawn? Bleh.
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Yeah, I'd just say add (If (Killing unit) is dead Equal to True) then Wait until (Killing unit) is dead Equal to False, checking every 0.2 seconds. For that matter, is (Killing unit) wait-safe? :confused:
 

Bird

Ultra Cool Member
Reaction score
29
It is not giving me any problems currently... Units are dying all over the place, and my Hero always returns back to normal Presence Spell Level after 5 Seconds. (even with multiple stacks/bonuses of the trigger running)

I will solve the death/respawn thing with another trigger.

Thanks +rep
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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