Small Trigger doesnt work, Don't know why

EoW.chips

New Member
Reaction score
2
Why doesnt this trigger work ? I want if a hero of player red dies, it should be revived after 60 sec. The Condition "(HeroRed is dead) Equal True" is needed cuz the hero could be revived by an other way as well. Any ideas ?

Thanks for help

Trigger:
  • Red Hero Revive
    • Ereignisse
      • Unit - A unit dies
    • Bedingungen
      • And - All (Conditions) are true
        • Bedingungen
          • (Unit-type of (Dying unit)) Unequal Thorn
          • (Unit-type of (Dying unit)) Unequal Ancient tauren
          • ((Dying unit) is Ein Held) Equal True
          • (Owner of (Dying unit)) Equal Player 1 (Red)
    • Aktionen
      • Set HeroRed = (Dying unit)
      • Spiel - Display to Playergroup - Player 1 (Red) the text: Your hero will revi...
      • Wait 60.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (HeroRed is dead) Equal True
        • 'THEN'-Aktionen
          • Held - Instantly revive (Dying unit) at (Center of HeroCreaterHumans <gen>), Hide revival graphics
        • 'ELSE'-Aktionen
 

Ayanami

칼리
Reaction score
288
This trigger will have a lot of conflicts if multiple Heroes die. The wait is killing it. I suggest you use a Timer instead.
 

EoW.chips

New Member
Reaction score
2
Player Red only got 1 Hero ^^ so there won't die multiple heroes. Can u give an example with the Timer ? Dunno how.
 

Ayanami

칼리
Reaction score
288
If that's the case, your error is here.

Trigger:
  • Unit - Instantly revive (Dying unit) at (Center of HeroCreaterHumans <gen>), Hide revival graphics


(Dying unit) should be replaced with HeroRed.
 

Grags_1977

Ultra Cool Member
Reaction score
32
I'm sure i've read somewhere that Dying unit is very unreliable to allways use Triggering unit where possible. Might be a myth i'm not sure.

If you were to use Triggering unit, I don't think the variable HeroRed is needed.

Trigger:
  • Revive Hero
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
    • Conditions
      • (Triggering unit) Equal to YOURHERO
    • Actions
      • Game - Display to (All players) the text: |cffff0000You have ...
      • Wait 60.00 seconds
      • Set TempPoint = (Position of Triggering unit)
      • Hero - Instantly revive (Triggering unit) at TempPoint, Show revival graphics
      • Custom script: call RemoveLocation( udg_TempPoint )
 

vypur85

Hibernate
Reaction score
803
Dying unit works just fine. Then again, use the variable since you've already set it.

I am not sure why this does not work for your unit. Is your unit a hero?
And did your unit died? Does it carry an Ankh of Reincarnation (or anything similar)?
Another trigger that removes dead units?

Otherwise, the trigger looks rather fine to me.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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