Dregonx
TH.net Regular
- Reaction score
- 21
Anyone know how you can find the highest level, or lowest level in a unit group, both hero and unit, or at least just unit?
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)Anyone know how you can find the highest level, or lowest level in a unit group, both hero and unit, or at least just unit?
Set Level = 0
Pick every unit in <some unit group> and do
Set Level = Max( (Level of (Picked unit)), Level )
Set Level = 9999
Pick every unit in <some unit group> and do
Set Level = Min( (Level of (Picked unit)), Level )
Greatest:
Lowest:Code:Set Level = 0 Pick every unit in <some unit group> and do Set Level = Max( (Level of (Picked unit)), Level )
Code:Set Level = 9999 Pick every unit in <some unit group> and do Set Level = Min( (Level of (Picked unit)), Level )
Min and Max can be found under "Math".