D
DoYouLikePie
Guest
I am making the map, you probably know by now, lol. And I am making the multiboard exactly how the tutorial told me to. But when I kill a unit, the multiboard goes to 1. The next unit I kill, the multiboard stays at one. Here is what I have:
This is for the player colors for the multiboard (Just 6 for an example I can add more later)
Player Colors
Events
Map initialization
Conditions
Actions
Set PlayerColor[1] = |c00ff0000
Set PlayerColor[2] = |c000000ff
Set PlayerColor[3] = |c0000ffff
Set PlayerColor[4] = |c008000080
Set PlayerColor[5] = |c00ffff00
Set PlayerColor[6] = |c00ff80000
This is the triggers for creating the multiboard. Everything is fine here I think, because the multibaord shows.
Create Multiboard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set PlayerCount = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
Multiboard - Create a multiboard with 3 columns and (PlayerCount + 1) rows, titled Kills
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Player Name
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
For each (Integer A) from 1 to (1 + PlayerCount), do (Actions)
Loop - Actions
Multiboard - Set the display style for (Last created multiboard) item in column 1, 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 Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 3, row (Integer A) to Show text and Hide icons
Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 2.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 8.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 2.00% of the total screen width
Set List = 2
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 Multiboard_Spots[(Player number of (Picked player))] = List
Multiboard - Set the text for (Last created multiboard) item in column 2, row List to (PlayerColor[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
Multiboard - Set the icon for (Last created multiboard) item in column 1, row List to ReplaceableTextures\CommandButtons\BTNArcaniteMelee.blp
Set List = (List + 1)
Multiboard - Show (Last created multiboard)
Last is the update. This is where the problem is I think.
Player Kills Update
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) controller) Equal to User
Actions
Set KillCount[(Player number of (Owner of (Killing unit)))] = KillCount[((Player number of (Owner of (Killing unit))) + 1)]
Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Spots[(Player number of (Owner of (Killing unit)))] to (String(KillCount[(Player number of (Owner of (Killing unit)))]))
If anyone does know what I did wrong, please replay as soon as possible.
Thanks
_______________
P.S. How do you get the picture next to your account name?
This is for the player colors for the multiboard (Just 6 for an example I can add more later)
Player Colors
Events
Map initialization
Conditions
Actions
Set PlayerColor[1] = |c00ff0000
Set PlayerColor[2] = |c000000ff
Set PlayerColor[3] = |c0000ffff
Set PlayerColor[4] = |c008000080
Set PlayerColor[5] = |c00ffff00
Set PlayerColor[6] = |c00ff80000
This is the triggers for creating the multiboard. Everything is fine here I think, because the multibaord shows.
Create Multiboard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set PlayerCount = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
Multiboard - Create a multiboard with 3 columns and (PlayerCount + 1) rows, titled Kills
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Player Name
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
For each (Integer A) from 1 to (1 + PlayerCount), do (Actions)
Loop - Actions
Multiboard - Set the display style for (Last created multiboard) item in column 1, 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 Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 3, row (Integer A) to Show text and Hide icons
Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 2.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 8.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 2.00% of the total screen width
Set List = 2
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 Multiboard_Spots[(Player number of (Picked player))] = List
Multiboard - Set the text for (Last created multiboard) item in column 2, row List to (PlayerColor[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
Multiboard - Set the icon for (Last created multiboard) item in column 1, row List to ReplaceableTextures\CommandButtons\BTNArcaniteMelee.blp
Set List = (List + 1)
Multiboard - Show (Last created multiboard)
Last is the update. This is where the problem is I think.
Player Kills Update
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) controller) Equal to User
Actions
Set KillCount[(Player number of (Owner of (Killing unit)))] = KillCount[((Player number of (Owner of (Killing unit))) + 1)]
Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Spots[(Player number of (Owner of (Killing unit)))] to (String(KillCount[(Player number of (Owner of (Killing unit)))]))
If anyone does know what I did wrong, please replay as soon as possible.
Thanks
_______________
P.S. How do you get the picture next to your account name?


