• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Unit Death Trigger

Status
Not open for further replies.
Help, I need to find this certain action for a trigger.

  • Unit Death
  • Events
    • Unit - A Unit owned by Player 1(red) dies
  • Conditions
    • (Triggering Unit) Equal To (Summoned Unit)
  • Actions
    • Game - Show to (All Players) the text: Warning: A unit has fallen.
I need to look for the trigger/condition that will make it ignore the action if the unit that died is a summoned unit.
 
  • ((Triggering unit) is Summoned) Equal to True)
It's a boolean comparison. Alternative:
  • Trigger1
  • Events
    • Unit - A unit spawns a summoned unit
  • Conditions
  • Actions
    • Unit Group - Add (Summoned unit) to SummonGroup
  • Trigger2
  • Events
    • Unit - A unit dies
  • Conditions
    • ((Triggering unit) is in SummonGroup) Equal to True //Again Boolean Comparison
  • Actions
    • Game - Show to (All players) the text: "Warning: A unit has fallen."
 
Not a unit comparison? You're really good with this, you've replied to a few of my other help reqs before as well.


I just did it, and I noticed you did something wrong with the trigger you made.

  • Unit Death
  • Events
    • Unit - A Unit owned by Player 1(Red) Dies
  • Conditions
    • ((Triggering Unit is) is summoned) Equal to TRUE)
  • Actions
    • Game - Show to (All Players) the text: Warning: A unit has fallen.
Change it to FALSE. No offense, but just a guide for those that will read this thread.



To those that will read this thread:
  • Unit Death Indicator
  • Events
    • Unit - A Unit owned by Player 1 (Red) dies Can be found at Unit - Player-Owned Unit Event
  • Conditions
    • ((Triggering Unit) is summoned) Equal To False) Can be found at Boolean Comparison - Summoned Unit can be found at Unit - Summoned Unit
  • Actions
    • Game - Show to (All Players) the text: Warning: A unit has fallen.
 
Last edited:
Status
Not open for further replies.
Top