- Joined
- Mar 23, 2008
- Messages
- 942
I was trying to make my multiboard show the kills and things like that, but I forgot to set a variable to what row is each player...
So I went to my multiboard trigger and start thinking....
But... I can't... I can't think a way to get something like
Multiboard_Spot[PlayerNumber] = RowX
The maim problem is that the players might not be like: 1, 2, 3, 4. They could be 1, 4, 5, 7, 8...
Edit: Now I also see that if player 3 is not playing and player 5 is, the game will crash...
And in my game Team 1 is: 1, 3, 5, 7, 9, 11
Team 2: 2, 4, 6, 8, 10, 12
Any help is appreciate!
So I went to my multiboard trigger and start thinking....
But... I can't... I can't think a way to get something like
Multiboard_Spot[PlayerNumber] = RowX
The maim problem is that the players might not be like: 1, 2, 3, 4. They could be 1, 4, 5, 7, 8...
Edit: Now I also see that if player 3 is not playing and player 5 is, the game will crash...
And in my game Team 1 is: 1, 3, 5, 7, 9, 11
Team 2: 2, 4, 6, 8, 10, 12
Any help is appreciate!
-
Multiboard
-
Events
- Time - Elapsed game time is 16.00 seconds
- Conditions
-
Actions
- Set Player_Count_team1 = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True)))))
- Set Player_Count_team2 = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 2 (Blue)) Equal to True)))))
- Multiboard - Create a multiboard with 5 columns and (5 + (Player_Count_team1 + Player_Count_team2)) rows, titled Anime Brawl
- Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to (|cffff0000 + (Kill_Name + |r))
- Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to (|cff0000ff + (Death_Name + |r))
- Multiboard - Set the text for (Last created multiboard) item in column 5, row 1 to (|CFF949694 + (Assist_Name + |r))
- Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to Team 1
- Multiboard - Set the text for (Last created multiboard) item in column 1, row (3 + Player_Count_team1) to Team 2
- Multiboard - Set the text for (Last created multiboard) item in column 1, row (4 + (Player_Count_team1 + Player_Count_team2)) to Time
- Multiboard - Set the text for (Last created multiboard) item in column 1, row (5 + (Player_Count_team1 + Player_Count_team2)) to Game Mode
- Multiboard - Set the text for (Last created multiboard) item in column 2, row (5 + (Player_Count_team1 + Player_Count_team2)) to Game_Mode
- Multiboard - Set the text for (Last created multiboard) item in column 3, row (5 + (Player_Count_team1 + Player_Count_team2)) to (String(Game_Mode_Int))
- Multiboard - Set the display style for (Last created multiboard) item in column 1, row 2 to Show text and Hide icons
- Multiboard - Set the display style for (Last created multiboard) item in column 1, row (3 + Player_Count_team1) to Show text and Hide icons
- Multiboard - Set the display style for (Last created multiboard) item in column 1, row (4 + (Player_Count_team1 + Player_Count_team2)) to Show text and Hide icons
- Multiboard - Set the display style for (Last created multiboard) item in column 1, row (5 + (Player_Count_team1 + Player_Count_team2)) to Show text and Hide icons
- Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Hide text and Hide icons
- Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Hide text and Hide icons
- Multiboard - Set the display style for (Last created multiboard) item in column 2, row 0 to Show text and Hide icons
- Multiboard - Set the display style for (Last created multiboard) item in column 3, row 0 to Show text and Hide icons
- Multiboard - Set the display style for (Last created multiboard) item in column 4, row 0 to Show text and Hide icons
- Multiboard - Set the display style for (Last created multiboard) item in column 5, row 0 to Show text and Hide icons
- Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 8.00% of the total screen width
- Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 3.00% of the total screen width
- Multiboard - Set the width for (Last created multiboard) item in column 3, row 0 to 3.20% of the total screen width
- Multiboard - Set the width for (Last created multiboard) item in column 4, row 0 to 4.00% of the total screen width
- Multiboard - Set the width for (Last created multiboard) item in column 5, row 0 to 3.50% of the total screen width
-
For each (Integer A) from 1 to Player_Count_team1, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Player_Count_team1 Greater than or equal to 1
-
Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 1, row ((Integer A) + 2) to (Player_Colors[((2 x (Integer A)) - 1)] + ((Name of (Player(((2 x (Integer A)) - 1)))) + |r))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer B) from 1 to Player_Count_team2, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Player_Count_team2 Greater than or equal to 1
-
Then - Actions
- Multiboard - Set the text for (Last created multiboard) item in column 1, row ((Integer B) + (3 + Player_Count_team1)) to (Player_Colors[((Integer B) x 2)] + ((Name of (Player(((Integer B) x 2)))) + |r))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Multiboard - Show (Last created multiboard)
-
Events