Leaderboard trouble

demonruin

New Member
Joined
May 13, 2008
Messages
4
Reaction score
0
Hello, me again. STill working on the same map, still having some problems.

1) How do you make a leaderboard that tracks everytime a player kills any unit?

2)How do you make a leaderboard that only shows players who are in the game instead of empty slots?
 

x42bn6

Retired Staff
Joined
Nov 11, 2002
Messages
15,150
Reaction score
2
Location
London, United Kingdom
Two very simple problems with a billion solutions, all better than the last.

For the first one, calculate where the position on the leaderboard is (in terms of coordinates) for some general player, then use a Unit - Generic Unit event trigger for a unit dying, and work things out.

For the second one, you could make an array of, say, integers that gets updated when a player leaves. So, initially, it could be that the array is [0..12] but after Player 3 leaves, the array loops through all players and then becomes, say, [0, 1, 2, -1, 3..12] (the 0 exists so that you can simply use player[player number] rather than player[player number -1]. Then you can loop through this array and if there's a -1, then skip it.

I assume you know how to use triggers...*
 
Top