hamiltonbb2
Cool Member
- Reaction score
- 0
Hey can anyone tell me why my multiboard is malfunctioning?
It isn't recording deaths properly. It counts the deaths but then changes the dying player's name to the number of deaths as well as the category "Player Name"
Here are the five triggers:
It isn't recording deaths properly. It counts the deaths but then changes the dying player's name to the number of deaths as well as the category "Player Name"
Here are the five triggers:
Code:
Create Multiboard
Events
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))))
Multiboard - Create a multiboard with 4 columns and (1 + Player_Count) rows, titled Beyond the Border
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 4, row 1 to Deaths
For each (Integer A) from 1 to (1 + 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 Show 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 display style for (Last created multiboard) item in column 4, 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 1.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 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 4.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 icon for (Last created multiboard) item in column 1, row List to ReplaceableTextures\CommandButtons\BTNHumanMissileUpThree.blp
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
Multiboard - Set the text for (Last created multiboard) item in column 4, row List to 0
Set List = (List + 1)
Multiboard - Show (Last created multiboard)
Code:
Player Kills Update
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) controller) Equal to User
Actions
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2, row Multiboard_Spots[(Player number of (Owner of (Killing unit)))] to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
Code:
Player Deaths Update
Events
Unit - A unit Dies
Conditions
(((Triggering unit) is A Hero) Equal to True) and (((Owner of (Dying unit)) controller) Equal to User)
Actions
Set Death_Count[(Player number of (Owner of (Dying unit)))] = (Death_Count[(Player number of (Owner of (Dying unit)))] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4, row Multiboard_Spots[(Player number of (Owner of (Dying unit)))] to (String(Death_Count[(Player number of (Owner of (Dying unit)))]))
Code:
Player leaves
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Player - Player 11 (Dark Green) leaves the game
Player - Player 12 (Brown) leaves the game
Conditions
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
Loop - Actions
Game - Display to (All players) the text: (|cffFFFF00 + ((Name of (Triggering player)) + |r has left the game.))
Unit - Remove (Picked unit) from the game
Multiboard - Set the text for (Last created multiboard) item in column 0, row Multiboard_Spots[(Player number of (Triggering player))] to Gone
Code:
Define Colors
Events
Map initialization
Conditions
Actions
Set Player_Colors[1] = |c00ff0000
Set Player_Colors[2] = |c000000ff
Set Player_Colors[3] = |c0000ffff
Set Player_Colors[4] = |c00800080
Set Player_Colors[5] = |c00ffff00
Set Player_Colors[6] = |c00ff8000
Set Player_Colors[7] = |c0000ff00
Set Player_Colors[8] = |c00ff00ff
Set Player_Colors[9] = |cff959697
Set Player_Colors[10] = |cff7ebff1
Set Player_Colors[11] = |cff106246
Set Player_Colors[12] = |cff4e2a04