Can someone help me fix my multiboard?
The kills for team elf and alf is the total for the players on that team.
K is kill.
D is deaths.
CK is Creep Kill.
Ignore the squares in front of the names.
There should be 5 player slots on each team, not 2.
So far my code is like this but it wont display all the players and wont add on kills or deaths properly.
Thanks so much. I will give u rep.
The kills for team elf and alf is the total for the players on that team.
K is kill.
D is deaths.
CK is Creep Kill.
Ignore the squares in front of the names.
There should be 5 player slots on each team, not 2.
So far my code is like this but it wont display all the players and wont add on kills or deaths properly.
Code:
EVAMultiboard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set Elf = (All players matching ((((Matching player) slot status) Equal to Is playing) and ((((Matching player) controller) Equal to User) and (((Matching player) is an ally of Player 1 (Red)) Equal to True))))
Set Alf = (All players matching ((((Matching player) slot status) Equal to Is playing) and ((((Matching player) controller) Equal to User) and (((Matching player) is an enemy of Player 1 (Red)) Equal to True))))
Set Player_Count_Elf = (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_Alf = (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 enemy of Player 1 (Red)) Equal to True)))))
Multiboard - Create a multiboard with 3 columns and (3 + (Player_Count_Elf + Player_Count_Alf)) rows, titled Elf Vs Alf
Set Multiboard = (Last created multiboard)
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (Player_Colours[0] + (Players + End_Tag))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (Player_Colours[0] + (Kills + End_Tag))
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to (Player_Colours[0] + (Deaths + End_Tag))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to (Player_Colours[11] + (Elf + End_Tag))
For each (Integer A) from 1 to (3 + (Player_Count_Alf + Player_Count_Elf)), 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 8.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 5.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to 0
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to 0
Set List_Elf = 3
Player Group - Pick every player in Elf and do (Actions)
Loop - Actions
Set Multiboard_Spots_Elf[(Player number of (Picked player))] = List_Elf
Multiboard - Set the text for (Last created multiboard) item in column 1, row List_Elf to (Player_Colours[(Player number of (Picked player))] + ((Name of (Picked player)) + End_Tag))
Multiboard - Set the text for (Last created multiboard) item in column 2, row List_Elf to 0
Multiboard - Set the text for (Last created multiboard) item in column 3, row List_Elf to 0
Set List_Elf = (List_Elf + 1)
Set List_Alf = (Player_Count_Elf + 3)
Multiboard - Set the text for (Last created multiboard) item in column 1, row List_Alf to (Player_Colours[12] + (Alf + End_Tag))
Multiboard - Set the text for (Last created multiboard) item in column 2, row List_Alf to 0
Multiboard - Set the text for (Last created multiboard) item in column 3, row List_Alf to 0
Player Group - Pick every player in Alf and do (Actions)
Loop - Actions
Set Multiboard_Spots_Alf[(Player number of (Picked player))] = List_Alf
Multiboard - Set the text for (Last created multiboard) item in column 1, row List_Alf to (Player_Colours[(Player number of (Picked player))] + ((Name of (Picked player)) + End_Tag))
Multiboard - Set the text for (Last created multiboard) item in column 2, row List_Alf to 0
Multiboard - Set the text for (Last created multiboard) item in column 3, row List_Alf to 0
Set List_Alf = (List_Alf + 1)
Multiboard - Show (Last created multiboard)
Code:
Score
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) controller) Equal to User
((Dying unit) is A Hero) Equal to True
Multiboard_Spots_Elf[(Player number of (Picked player))] Not equal to 0
Multiboard_Spots_Alf[(Player number of (Picked player))] Not equal to 0
Actions
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Set Death_Count[(Player number of (Owner of (Dying unit)))] = (Death_Count[(Player number of (Owner of (Dying unit)))] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Killing unit)) is an ally of Player 1 (Red)) Equal to True
Then - Actions
Multiboard - Set the text for Multiboard item in column 2, row Multiboard_Spots_Elf[(Player number of (Owner of (Killing unit)))] to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
Multiboard - Set the text for Multiboard item in column 3, row Multiboard_Spots_Alf[(Player number of (Owner of (Dying unit)))] to (String(Death_Count[(Player number of (Owner of (Dying unit)))]))
Else - Actions
Multiboard - Set the text for Multiboard item in column 2, row Multiboard_Spots_Alf[(Player number of (Owner of (Killing unit)))] to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
Multiboard - Set the text for Multiboard item in column 3, row Multiboard_Spots_Elf[(Player number of (Owner of (Dying unit)))] to (String(Death_Count[(Player number of (Owner of (Dying unit)))]))