Ok so my leaderboard isn't updating when there is more then one player on a team. These are the triggers:
Unit Dies
Trigger:
Leaderboard Unit Dies
Events
Unit - Any Unit dies
Local Variables
p = 0 <Integer>
Conditions
(Unit type of (Triggering unit)) != Auto Turret (Lv1)
(Unit type of (Triggering unit)) != Auto Turret (Lv2)
(Unit type of (Triggering unit)) != Auto Turret (Lv3)
(Unit type of (Triggering unit)) != Teleporter Entrance
(Unit type of (Triggering unit)) != Teleporter Exit
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
((Owner of (Triggering unit)) is in Team 1) == true
((Owner of (Killing unit)) is in Team 1) == false
Then
Variable - Set p = (Killing player)
Variable - Set Kills[p] = (Kills[p] + 1)
Leaderboard - Set Leaderboard item text at column 2 and row (p + 1) to (Text(Kills[p]))
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
((Owner of (Triggering unit)) is in Team 2) == true
((Owner of (Killing unit)) is in Team 2) == false
Then
Variable - Set p = (Killing player)
Variable - Set Kills[p] = (Kills[p] + 1)
Leaderboard - Set Leaderboard item text at column 2 and row (p + 1) to (Text(Kills[p]))
Else
Update Leaderboard
Trigger:
Leaderboard Update
Events
Timer - Every 0.3 seconds of Game Time
Local Variables
Conditions
Actions
Leaderboard - Set Leaderboard item text at column 2 and row 8 to (Text(Kills[(1 + (Kills[2] + (Kills[3] + (Kills[4] + (Kills[5] + Kills[6])))))]))
Leaderboard - Set Leaderboard item text at column 2 and row 16 to (Text(Kills[(7 + (Kills[8] + (Kills[9] + (Kills[10] + (Kills[11] + Kills[12])))))]))
Leaderboard - Set Leaderboard item text at column 3 and row 8 to (Text(Caps[(1 + (Caps[2] + (Caps[3] + (Caps[4] + (Caps[5] + Caps[6])))))]))
Variable - Set Total Caps = Caps[(1 + (Caps[2] + (Caps[3] + (Caps[4] + (Caps[5] + Caps[6])))))]
Leaderboard - Set Leaderboard item text at column 3 and row 16 to (Text(Caps[(7 + (Caps[8] + (Caps[9] + (Caps[10] + (Caps[11] + Caps[12])))))]))
Variable - Set Total Caps 2 = Caps[(7 + (Caps[8] + (Caps[9] + (Caps[10] + (Caps[11] + Caps[12])))))]
General - If (Conditions) then do (Actions) else do (Actions)
If
Start Counting Caps == true
Then
General - If (Conditions) then do (Actions) else do (Actions)
If
Total Caps > Total Caps 2
Then
Leaderboard - Set Leaderboard item text at column 3 and row (18 + 0) to "Team 1"
Else
Leaderboard - Set Leaderboard item text at column 3 and row (18 + 0) to "Team 2"