yea
Integer comparison/unit comparison
Trigger:
- Conditions
- And
- Number of Units in Region 001 <gen> equal to NumHeroes
- Unit-type of (Triggering Unit/Entering Unit/Casting Unit/Whatever the events calls for) in Region 001 <gen> equal to Hero
- Actions
- ...
This would work only for a specific unit-type, he want it to work for any Hero-type. Go to conditions and look for boolean conditions :will work!
go try it
This would work only for a specific unit-type, he want it to work for any Hero-type. Go to conditions and look for boolean conditions :
Trigger:
- Entering unit is a Hero equal to true
i dno't have WE on my comp, sorry can't get too specific...
what Baldar said is true...
you can use And - Conditions and put those two lines in it or look at my above post for a different way around
ReplaceNope that didn't work...
here's my trigger:
Trigger:
- CloseGate1
- Events
- Unit - A unit enters Gate2 <gen>
- Conditions
- And - All (Conditions) are true
- Conditions
- (Number of units in (Units in Gate2 <gen> matching (((Triggering unit) is A Hero) Equal to True))) Equal to NumPlayers[1]
- ((Entering unit) is A Hero) Equal to True
- Actions
- Destructible - Close Massive Ruined Gate (Horizontal) 0274 <gen>
I don't know what's wrong with it. Try this :
Trigger:
- CloseGate1
- Events
- Unit - A unit enters Gate2 <gen>
- Conditions
- (Number of units in (Units in Gate2 <gen> matching (((Matching unit) is A Hero) Equal to True))) Equal to NumPlayers[1]
- Actions
- Destructible - Close Massive Ruined Gate (Horizontal) 0274 <gen>
Also make sure Gate2 is a big region and EVERY hero is inside it
Sorry, but I don't see what could the problem be, as I have no WE, I cannot test that trigger.I already made it a huge region ...
and every hero is in the region but it still won't work