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

Event: multiple structures die But not ... ?

Status
Not open for further replies.
Level 4
Joined
Aug 26, 2015
Messages
71
I want , in the victory, to have an event that multiple structures dies. But i have a problem. I put:

  • Events
    • Unit - Barracks 0052 <gen> Dies
    • Unit - Blacksmith 0045 <gen> Dies
    • Unit - Town Hall 0038 <gen> Dies
    • Unit - Farm 0049 <gen> Dies
And when, for example, barracks dies, it starts the trigger. What could I do to be those four structures and not only one starts the trigger?
 
Level 10
Joined
Apr 4, 2010
Messages
509
Add them all to a group and make a condition, If all units in group are dead equal to true, then do actions. Or you could just do this.

  • Events
    • Unit - Barracks 0052 <gen> Dies
    • Unit - Blacksmith 0045 <gen> Dies
    • Unit - Town Hall 0038 <gen> Dies
    • Unit - Farm 0049 <gen> Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Barracks 0052 <gen> is dead) Equal to True
          • (Blacksmith 0045 <gen> is dead) Equal to True
          • (Town Hall 0038 <gen> is dead) Equal to True
          • (Farm 0049 <gen> is dead) Equal to True
    • Actions
 
Last edited:
Level 4
Joined
Aug 26, 2015
Messages
71
Add them all to a group and make a condition, If all units in group are dead equal to true, then do actions. Or you could just do this.

  • Events
    • Unit - Barracks 0052 <gen> Dies
    • Unit - Blacksmith 0045 <gen> Dies
    • Unit - Town Hall 0038 <gen> Dies
    • Unit - Farm 0049 <gen> Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Barracks 0052 <gen> is dead) Equal to True
          • (Blacksmith 0045 <gen> is dead) Equal to True
          • (Town Hall 0038 <gen> is dead) Equal to True
          • (Farm 0049 <gen> is dead) Equal to True
    • Actions

Thanks. But for learn something new. How could I add them into a group? :)
 
Status
Not open for further replies.
Top