S
Stonos
Guest
Hello.
I'm trying to make my first map.
I want to make a multiboard to keep track of the player's & team kills.
However, when I try to update the kills, strangly, all the whole kills column is updated with the kills number!
Why is that happening?
Here's my multiboard create code and kills score add.
Multiboard create:
Kill add:
Why is this happening?
Oh, by the way, I'm using the trigger code from Senkin's tutorial.
Thank you!
I'm trying to make my first map.
I want to make a multiboard to keep track of the player's & team kills.
However, when I try to update the kills, strangly, all the whole kills column is updated with the kills number!
Why is that happening?
Here's my multiboard create code and kills score add.
Multiboard create:
Code:
Create Multiboard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set Player_Count = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
Set List = 3
Multiboard - Create a multiboard with 3 columns and ((Player_Count + 3) + 0) rows, titled Scores
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
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to Team 1
For each (Integer A) from 1 to (3 + Player_Count), 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 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 10.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 3.00% of the total screen width
Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) slot status) Equal to Is playing
((Picked player) controller) Equal to User
Then - 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 (Player_Colors[(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
Set List = (List + 1)
Else - Actions
Do nothing
Multiboard - Set the text for (Last created multiboard) item in column 2, row (List + 1) to Team 2
Player Group - Pick every player in (All allies of Player 5 (Yellow)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) slot status) Equal to Is playing
((Picked player) controller) Equal to User
Then - 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 (Player_Colors[(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
Set List = (List + 1)
Else - Actions
Do nothing
Multiboard - Show (Last created multiboard)
Kill add:
Code:
Player Kills Update
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) controller) Equal to User
Actions
Set PlayerKills[(Player number of (Owner of (Killing unit)))] = (PlayerKills[(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))) + 1)] to (String(PlayerKills[(Player number of (Owner of (Killing unit)))]))
Why is this happening?
Oh, by the way, I'm using the trigger code from Senkin's tutorial.
Thank you!


