I can't get this to work. What it is supposed to do is create a multiboard that has a label for East, and a label for West, and puts the correct players under each label.
Trigger:
Multiboard

Events


Time - Elapsed game time is 0.00 seconds

Conditions

Actions


For each (Integer A) from 1 to 12, do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






((Player((Integer A))) slot status) Equal to Is playing





Then - Actions






Set TotalPlayers = (TotalPlayers + 1)


Multiboard - Create a multiboard with 2 columns and (TotalPlayers + 2) rows, titled Archery Tactics


For each (Integer A) from 1 to (TotalPlayers + 2), do (Actions)



Loop - Actions




Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 8.00% of the total screen width




Multiboard - Set the display style for (Last created multiboard) item in column 1, row (Integer A) to Show text and Hide icons


-------- East Side --------


Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to East


For each (Integer A) from 1 to (Number of players in (All allies of Player 1 (Red))), do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






((Player(PlayerNumber)) slot status) Equal to Is playing





Then - Actions






Multiboard - Set the text for (Last created multiboard) item in column 1, row TempInt to (Name of (Player(PlayerNumber)))






Set TempInt = (TempInt + 1)






Set PlayerNumber = (PlayerNumber + 1)


-------- West Side --------


Multiboard - Set the text for (Last created multiboard) item in column 1, row TempInt to West


Set TempInt = (TempInt + 1)


Set PlayerNumber = 7


For each (Integer A) from TempInt to (TempInt + (Number of players in (All allies of Player 7 (Green)))), do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






((Player(PlayerNumber)) slot status) Equal to Is playing





Then - Actions






Multiboard - Set the text for (Last created multiboard) item in column 1, row TempInt to (Name of (Player(PlayerNumber)))






Set TempInt = (TempInt + 1)






Set PlayerNumber = (PlayerNumber + 1)


Trigger - Run StartGame <gen> (ignoring conditions)