If you're talking about a footies style map, then use the supply limit already in-game. Make each unit reduce the supply (found in the data editor for each unit) by -1, and have your trigger check to see if the player's 'supply used' is equal to it's 'supply maximum'.
Alternatively, the better way to do this is through the data editor only. Create a behavior that has a periodic create unit effect, and add a validator (disable) to the behavior. The validator will be of type 'Player Compare Food Used', and the value will be whatever you want your supply cap to be (in this case, 100.) This way, your behavior will spawn a unit every (periodic duration, like 1 second) if and only if the supply cap has not been reached.
@zISilenced: Go
If you're talking about a footies style map, then use the supply limit already in-game. Make each unit reduce the supply (found in the data editor for each unit) by -1, and have your trigger check to see if the player's 'supply used' is equal to it's 'supply maximum'.
Alternatively, the better way to do this is through the data editor only. Create a behavior that has a periodic create unit effect, and add a validator (disable) to the behavior. The validator will be of type 'Player Compare Food Used', and the value will be whatever you want your supply cap to be (in this case, 100.) This way, your behavior will spawn a unit every (periodic duration, like 1 second) if and only if the supply cap has not been reached.