What's the best way to count units?
Is there a better way to do it than this?:
Is there a better way to do it than this?:
Trigger:
- Actions
- Set TempGroup = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Villager))
- Set UnitCountInt = (UnitCountInt + (Number of units in TempGroup))
- Custom script: call DestroyGroup(udg_TempGroup)