• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Need help with countable units! {counting units that (have) die(d) on a region}

Status
Not open for further replies.
Level 9
Joined
Feb 19, 2008
Messages
319
Hi
I need something like this:

8 unit dies in Region001
Dying units equal to units owned by Neutral Hostile
then the actions...

But I can't make it as a trigger. I can use only the "A unit dies" event, but there isn't a "Value unit dies" event I need (value is a number)
Please help me if you understand this:)
Ordworse
 
Level 10
Joined
Aug 15, 2008
Messages
720
This should work... 100%

  • A unit dies in Your Region
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Your Region <gen> contains (Dying unit)) Equal to (==) True
    • Actions
      • Set YourIntegerVariable = (YourIntegerVariable + 1)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • YourIntegerVariable Equal to (==) 8
          • Then - Actions
            • -------- Your Action --------
          • Else - Actions
            • Do nothing
Just create Variable what is in "Integer" type...
 
Status
Not open for further replies.
Top