Post by Hells Angel on Jul 13, 2005 2:57:05 GMT 1
Okay here's the triggering to set up a normal leaderboard for RPG's (becuase the triggering is different from mauls):
Trigger 1:
Events:
-Time - Elapsed game time is 1.00 seconds
Conditions:
-None
Actions:
-Leaderboard - Create a leaderboard for (All players) titled Kills
-Set Leaderboard = (Last created leaderboard)
-Leaderboard - Add Player 1 (Red) to Leaderboard with label (Name of Player 1 (Red)) and value 0
-Leaderboard - Add Player 2 (Blue) to Leaderboard with label (Name of Player 2 (Blue)) and value 0
-Leaderboard - Add Player 3 (Teal) to Leaderboard with label (Name of Player 3 (Teal)) and value 0
-Leaderboard - Add Player 4 (Purple) to Leaderboard with label (Name of Player 4 (Purple)) and value 0
-Leaderboard - Add Player 5 (Yellow) to Leaderboard with label (Name of Player 5 (Yellow)) and value 0
-Leaderboard - Add Player 6 (Orange) to Leaderboard with label (Name of Player 6 (Orange)) and value 0
-Leaderboard - Add Player 7 (Green) to Leaderboard with label (Name of Player 7 (Green)) and value 0
-Leaderboard - Add Player 8 (Pink) to Leaderboard with label (Name of Player 8 (Pink)) and value 0
-Leaderboard - Add Player 9 (Gray) to Leaderboard with label (Name of Player 9 (Gray)) and value 0
Trigger 2:
Events:
-Unit - A unit Dies
Conditions:
-(Owner of (Killing unit)) Equal to Player 1 (Red)
Actions:
-Set Kills[1] = (Kills[1] + 1)
-Leaderboard - Change the value for Player 1 (Red) in Leaderboard to Kills[1]
Okay that's al you really got to do. Also you have to continue the second trigger for all players.
Note: If you need any help understanding the coding then plz post and I'll answer as soon as I can.
Trigger 1:
Events:
-Time - Elapsed game time is 1.00 seconds
Conditions:
-None
Actions:
-Leaderboard - Create a leaderboard for (All players) titled Kills
-Set Leaderboard = (Last created leaderboard)
-Leaderboard - Add Player 1 (Red) to Leaderboard with label (Name of Player 1 (Red)) and value 0
-Leaderboard - Add Player 2 (Blue) to Leaderboard with label (Name of Player 2 (Blue)) and value 0
-Leaderboard - Add Player 3 (Teal) to Leaderboard with label (Name of Player 3 (Teal)) and value 0
-Leaderboard - Add Player 4 (Purple) to Leaderboard with label (Name of Player 4 (Purple)) and value 0
-Leaderboard - Add Player 5 (Yellow) to Leaderboard with label (Name of Player 5 (Yellow)) and value 0
-Leaderboard - Add Player 6 (Orange) to Leaderboard with label (Name of Player 6 (Orange)) and value 0
-Leaderboard - Add Player 7 (Green) to Leaderboard with label (Name of Player 7 (Green)) and value 0
-Leaderboard - Add Player 8 (Pink) to Leaderboard with label (Name of Player 8 (Pink)) and value 0
-Leaderboard - Add Player 9 (Gray) to Leaderboard with label (Name of Player 9 (Gray)) and value 0
Trigger 2:
Events:
-Unit - A unit Dies
Conditions:
-(Owner of (Killing unit)) Equal to Player 1 (Red)
Actions:
-Set Kills[1] = (Kills[1] + 1)
-Leaderboard - Change the value for Player 1 (Red) in Leaderboard to Kills[1]
Okay that's al you really got to do. Also you have to continue the second trigger for all players.
Note: If you need any help understanding the coding then plz post and I'll answer as soon as I can.