This trigger is meant to line 2 to 12 units up in a vertical line.
The first bug, is a bug I had anticipated.
I want each unit that red has selected stored in an array. The only option that allows me to do that is "Random unit in Unit_Group." That unit group variable is set to "currently selected by player 1."
The problem is that is can select the same unit multiple times, leaving other units out.
The second bug is that they do line up, but in close groups of 3 or 4, but each group is very far from another. This is how it looks (horizontally).\
XXX XXXX XXX
Rep bonus if you know that problem.
The first bug, is a bug I had anticipated.
I want each unit that red has selected stored in an array. The only option that allows me to do that is "Random unit in Unit_Group." That unit group variable is set to "currently selected by player 1."
The problem is that is can select the same unit multiple times, leaving other units out.
The second bug is that they do line up, but in close groups of 3 or 4, but each group is very far from another. This is how it looks (horizontally).\
XXX XXXX XXX
Rep bonus if you know that problem.
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 FormVertRedFulcrum = (Random unit from FormVertRedGroup)
- For each (Integer A) from 1 to 12, do (Actions)
- Loop - Actions
- Set FormVertRed[(Integer A)] = (Random unit from FormVertRedGroup)
- Unit - Turn collision for FormVertRed[(Integer A)] Off
- Unit - Move FormVertRed[(Integer A)] instantly to ((Position of FormVertRedFulcrum) offset by (75.00 x (Real((Integer A)))) towards 270.00 degrees), facing 0.00 degrees
- Loop - Actions
- Events