buetz
B
buetz
Hey, I've got a problem with my multiboard...
What it does: it displays the player names and current ressources of all players.
Problem: If I close e.g. playerslot 1 , 2 and I play in slot 3, ressources and names won't show up correct ingame anymore.
Here is my trigger code:
I think the problem is located at "Update Multiboard"...
Thank you for your help
Buetz.
What it does: it displays the player names and current ressources of all players.
Problem: If I close e.g. playerslot 1 , 2 and I play in slot 3, ressources and names won't show up correct ingame anymore.
Here is my trigger code:
-
Multiboard Initialization
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set players_playing = (All players matching (((Matching player) slot status) Equal to Is playing))
-


-------- Gold colour --------
-


Set cc_players[0] = |cffffcc00
-


-------- Player colours. --------
-


Set cc_players[1] = |c00ff0303
-


Set cc_players[2] = |c000042ff
-


Set cc_players[3] = |c001ce6b9
-


Set cc_players[4] = |c00540081
-


Set cc_players[5] = |c00fffc01
-


Set cc_players[6] = |c00feba0e
-


Set cc_players[7] = |c0020c000
-


Set cc_players[8] = |c00e55bb0
-


Set cc_endtag = |r
-
-
-
Multiboard Flag
-

Events
-


Time - Elapsed game time is 0.00 seconds
-
-

Conditions
-

Actions
-


Multiboard - Create a multiboard with 3 columns and (1 + (Number of players in players_playing)) rows, titled test
-


Set multiboard_flag = (Last created multiboard)
-


-------- row 1, colum 1, 2. --------
-


Multiboard - Set the text for multiboard_flag item in column 2, row 1 to |CFFFFCC00Gold:|R
-


Multiboard - Set the text for multiboard_flag item in column 3, row 1 to |CFFFFCC00Lumber:|R
-


-------- loop part. --------
-


For each (Integer A) from 1 to (1 + (Number of players in players_playing)), do (Actions)
-



Loop - Actions
-




-------- Multiboard style. --------
-




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




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




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




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




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




-------- set the icon images... --------
-




Multiboard - Set the icon for (Last created multiboard) item in column 2, row player_row to UI\Feedback\Resources\ResourceGold.blp
-




Multiboard - Set the icon for (Last created multiboard) item in column 3, row player_row to UI\Feedback\Resources\ResourceLumber.blp
-




-------- Multiboard width. --------
-




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




Multiboard - Set the width for multiboard_flag item in column 2, row (Integer A) to 4.00% of the total screen width
-




Multiboard - Set the width for multiboard_flag item in column 3, row (Integer A) to 4.00% of the total screen width
-




-------- Player adding part. --------
-




-------- Player name. --------
-




Set player_row = (player_row + 1)
-




Set player_colour = (player_colour + 1)
-




Multiboard - Set the text for multiboard_flag item in column 1, row player_row to (cc_players[player_colour] + ((Name of (Player(player_colour))) + cc_endtag))
-




-------- Player name. --------
-




Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User))) and do (Actions)
-





Loop - Actions
-






Set Gold[(Player number of (Picked player))] = ((Picked player) Current gold)
-






Set lumber[(Player number of (Picked player))] = ((Picked player) Current lumber)
-






Multiboard - Set the text for multiboard_flag item in column 2, row player_row to (String(Gold[(Player number of (Picked player))]))
-






Multiboard - Set the text for multiboard_flag item in column 3, row player_row to (String(lumber[(Player number of (Picked player))]))
-
-
-
-
-


Multiboard - Show multiboard_flag
-
-
-
Update Multiboard
-

Events
-


Player - Player 1 (Red)'s Current gold becomes Greater than or equal to 0.00
-


Player - Player 1 (Red)'s Current lumber becomes Greater than or equal to 0.00
-


Player - Player 2 (Blue)'s Current gold becomes Greater than or equal to 0.00
-


Player - Player 2 (Blue)'s Current lumber becomes Greater than or equal to 0.00
-


Player - Player 3 (Teal)'s Current gold becomes Greater than or equal to 0.00
-


Player - Player 3 (Teal)'s Current lumber becomes Greater than or equal to 0.00
-


Player - Player 4 (Purple)'s Current gold becomes Greater than or equal to 0.00
-


Player - Player 4 (Purple)'s Current lumber becomes Greater than or equal to 0.00
-


Player - Player 5 (Yellow)'s Current gold becomes Greater than or equal to 0.00
-


Player - Player 5 (Yellow)'s Current lumber becomes Greater than or equal to 0.00
-


Player - Player 6 (Orange)'s Current gold becomes Greater than or equal to 0.00
-


Player - Player 6 (Orange)'s Current lumber becomes Greater than or equal to 0.00
-
-

Conditions
-

Actions
-


Set Gold[(Player number of (Triggering player))] = ((Triggering player) Current gold)
-


Multiboard - Set the text for multiboard_flag item in column 2, row ((Player number of (Triggering player)) + 1) to (String(Gold[(Player number of (Triggering player))]))
-


Set lumber[(Player number of (Triggering player))] = ((Triggering player) Current lumber)
-


Multiboard - Set the text for multiboard_flag item in column 3, row ((Player number of (Triggering player)) + 1) to (String(lumber[(Player number of (Triggering player))]))
-
-
I think the problem is located at "Update Multiboard"...
Thank you for your help
Buetz.




