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?
 
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:
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.
Back
Top