• 🏆 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!

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