If that doesn't work try this
[trigger=My Trigger]MyTrigger
Actions
Unit Group - Pick every unit in (Units in Your Region From Where To Pick Units <gen>)and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
(Owner of (Picked unit)) Equal to Player 7 (Green)
(Owner of (Picked unit)) Equal to Player 8 (Pink)
Then - Actions
Unit - Order (Picked unit to Attack-Move To (Center of Your Region Where Creeps Will Attack Move <gen>)
Else - Actions
Do nothing[/trigger]
Use 1 of these triggers
In first one, you can copy paste trigger, and change Player 7 to Player 8 to make for other players.