What's the difference between these and which one should I use?
Or
-
Set ScalperPickedGroup = (Units within 120.00 of ScalperDummyLoc matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)) and ((((Matching unit) is Mechanical) Equal to False) and ((((Matching unit) is alive) Equal to True)
-
Set ScalperDamageGroup = (Random 1 units from ScalperPickedGroup)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in ScalperDamageGroup) Greater than or equal to 1
-
-
Then - Actions
-
-
Set ScalperPickedGroup = (Units within 120.00 of ScalperDummyLoc matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)) and ((((Matching unit) is Mechanical) Equal to False) and ((((Matching unit) is alive) Equal to True)
-
Unit Group - Pick every unit in ScalperPickedGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in ScalperPickedGroup) Greater than or equal to 1
-
-
Then - Actions
-
Set ScalperPickedTarget = (Random unit from ScalperPickedGroup)
-
-
Else - Actions
-
-
-