HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Help

06-08-2010, 10:25 PM#1
Zero
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
Collapse Events
Unit - Any Unit dies
Collapse Local Variables
p = 0 <Integer>
Collapse 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
Collapse Actions
Collapse General - If (Conditions) then do (Actions) else do (Actions)
Collapse If
((Owner of (Triggering unit)) is in Team 1) == true
((Owner of (Killing unit)) is in Team 1) == false
Collapse 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
Collapse General - If (Conditions) then do (Actions) else do (Actions)
Collapse If
((Owner of (Triggering unit)) is in Team 2) == true
((Owner of (Killing unit)) is in Team 2) == false
Collapse 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
Collapse Events
Timer - Every 0.3 seconds of Game Time
Local Variables
Conditions
Collapse 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])))))]
Collapse General - If (Conditions) then do (Actions) else do (Actions)
Collapse If
Start Counting Caps == true
Collapse Then
Collapse General - If (Conditions) then do (Actions) else do (Actions)
Collapse If
Total Caps > Total Caps 2
Collapse Then
Leaderboard - Set Leaderboard item text at column 3 and row (18 + 0) to "Team 1"
Collapse Else
Leaderboard - Set Leaderboard item text at column 3 and row (18 + 0) to "Team 2"
Else

What it looks like:



What am I doing wrong?