I wanted that if my player 15 (enemy) does not have units (units only, structure excluded) left anymore or reach zero ,my next level trigger will follow.
Set an integer variable and name it 'P15 # of Units'. Then make another trigger that will add 1 for every unit that enters the map/is created, and another that removes 1 for every unit that leaves the map/dies. Then set your trigger so that if that integer ='s 0, do blah blah blah. There are other ways, this is just the one that immediately comes to my mind.
I wanted that if my player 15 (enemy) does not have units (units only, structure excluded) left anymore or reach zero ,my next level trigger will follow.
@jerberson12: Go
Set an integer variable and name it 'P15 # of Units'. Then make another trigger that will add 1 for every unit that enters the map/is created, and another that removes 1 for every unit that leaves the map/dies. Then set your trigger so that if that integer ='s 0, do blah blah blah. There are other ways, this is just the one that immediately comes to my mind.
@ST4RKiLL3R: Go
This is bad, sec I will find my original post about this.
Edit: http://forums.sc2mapster.com/development/map-development/8681-trigger-return-total-unit-count-of-player/
@ST4RKiLL3R: Go
nice one, but i read that there is something like "number of living units for player in a region" dont know if thats true
@jerberson12: Go
Follow that one which I posted. Where I used the region I selected the function "Entire Map" You may also select a value.
@Suterusu1337: Go
I said it was the first way of doing this to come to my mind. I also said there we're other ways of doing it. That is one of them.