Since there is so much looping here I can't tell. I also don't know if unit variables (not unit groups) can leak.
Trigger:
- Verticle Line
- Events
- Player - Player 1 (Red) types a chat message containing -v as An exact match
- Conditions
- Actions
- Set FormVertRedGroup = (Units currently selected by Player 1 (Red))
- Set Z01A = (Position of (Random unit from FormVertRedGroup))
- Set Z01B = Z01A
- For each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Set RedVertArray[(Integer A)] = (Random unit from FormVertRedGroup)
- Unit - Turn collision for RedVertArray[(Integer A)] Off
- Unit - Move RedVertArray[(Integer A)] instantly to (Z01B offset by (80.00 x (Real((Integer A)))) towards 270.00 degrees), facing 0.00 degrees
- Unit - Order RedVertArray[(Integer A)] to Hold Position
- Unit Group - Remove RedVertArray[(Integer A)] from FormVertRedGroup
- Loop - Actions
- Custom script: call DestroyGroup(udg_VertRedGroup)
- For each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Set RedVertArray[(Integer A)] = (Random unit from FormVertRedGroup)
- Unit - Turn collision for RedVertArray[(Integer A)] Off
- Unit - Move RedVertArray[(Integer A)] instantly to (Z01B offset by (80.00 x ((Real((Integer A))) - 1.00)) towards 90.00 degrees), facing 0.00 degrees
- Unit - Order RedVertArray[(Integer A)] to Hold Position
- Unit Group - Remove RedVertArray[(Integer A)] from FormVertRedGroup
- Loop - Actions
- Custom script: call DestroyGroup(udg_VertRedGroup)
- Custom script: call RemoveLocation(udg_Z01A)
- Custom script: call RemoveLocation(udg_Z01B)
- Set FormVertRedGroup = (Units currently selected by Player 1 (Red))
- For each (Integer A) from 1 to 12, do (Actions)
- Loop - Actions
- Set RedVertArray[(Integer A)] = (Random unit from FormVertRedGroup)
- Unit - Turn collision for RedVertArray[(Integer A)] On
- Unit Group - Remove RedVertArray[(Integer A)] from FormVertRedGroup
- Loop - Actions
- Custom script: call DestroyGroup(udg_VertRedGroup)
- Set FormVertRedGroup = (Units currently selected by Player 1 (Red))
- Set RedVertArray[1] = (Random unit from FormVertRedGroup)
- Sound - Attach Bugleface2 <gen> to RedVertArray[1]
- Sound - Play Bugleface2 <gen>
- Custom script: call DestroyGroup(udg_VertRedGroup)
- Events