• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Trigger to remove from the game a hero who dies

Status
Not open for further replies.
Level 18
Joined
Jan 12, 2011
Messages
1,512
The trick part is that some heroes have abilities based on tauren chieftain's revive, so I can't just remove a hero once he dies, he needs to be "revivable" (meaning that when he died he wasn't on CD) I tried doing this

AkqDUgu.jpg


But it doesn't work, the hero is still revivable.


Anyone knows how to do this? I had someone tell me that you needed jass but I'm fairly lost on it.
 
Level 5
Joined
Jan 5, 2019
Messages
108
The trick part is that some heroes have abilities based on tauren chieftain's revive, so I can't just remove a hero once he dies, he needs to be "revivable" (meaning that when he died he wasn't on CD) I tried doing this

AkqDUgu.jpg


But it doesn't work, the hero is still revivable.


Anyone knows how to do this? I had someone tell me that you needed jass but I'm fairly lost on it.

Do you need the unit who dies to be able to revive sometimes ?
Or do you just need it to be removed ?
Or do you need it to be removed even tho it has reincarnation ability?
 
Level 5
Joined
Jan 5, 2019
Messages
108
Here you go

  • Remove
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Reincarnation Equal to (Ability being cast)
        • Then - Actions
          • Unit - Kill Tauren Chieftain 0000 <gen>
        • Else - Actions
          • Unit - Remove Tauren Chieftain 0000 <gen> from the game
 

Attachments

  • TestWar3.w3x
    17.3 KB · Views: 36
Level 18
Joined
Jan 12, 2011
Messages
1,512
Here you go

  • Remove
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Reincarnation Equal to (Ability being cast)
        • Then - Actions
          • Unit - Kill Tauren Chieftain 0000 <gen>
        • Else - Actions
          • Unit - Remove Tauren Chieftain 0000 <gen> from the game

Do I need to kill the unit? isn't he dying already?

Btw how would I do so that the death animation plays out?
 
Last edited:
Status
Not open for further replies.
Top