I'm at work so can't look at the maps. But there is no leaderboard that does this by default.
Most likely they are using the Custom leaderboard, and counting up all the units of each type a player has an adding the appropriate supply to the Custom Score, and then displaying that. They would do this for both units and supply buildings.
This would be quite tedious to implement from scratch, so the best bet would be to copy their triggers over to your map.
Eg, Player 1 commands exactly 1 Protoss Archon: Add 4 to custom score
Player 1 commands exactly 2 Protoss Archon: Add 8 to custom score
...
Player 1 commands exactly 50 Protoss Archon: Add 200 to custom score
Repeat triggers for all units for all races.
To get the total supply showing as / x on the leaderboard text, you would have triggers like:
Player 1 commands exactly 1 Protoss Pylon: Add 8 to Cave
Player 1 commands exactly 2 Protoss Pylon: Add 16 to Cave
...
Player 1 Commands at least 25 Protoss Pylon: Add 200 to Cave
Player 1 Commands at least 1 Terran Supply Depot: Add 8 to Cave
...
Then:
Player 1 Cave deaths exactly 8
Show Custom Leader board text "/8"
Player 1 Cave deaths exactly 16
Show Custom Leader board text "/16"
...
Player 1 Cave deaths at least 200
Show Custom Leader board text "/200"
Note that you would actually need to have 201 of these triggers for supply ranging from 0 to 200, because Zerg hatcheries give 1 supply, so odd values like 9, 10, 11, 12 etc are easily possible. Also Command Centers give 10 supply.
Note that this approach will give odd results for players controlling multiple races, eg Protoss who MC'd a drone/SCV, as you could get displays like 150/250, with the total supply coming from supply depots and pylons. So further trickiness could be considered to handle these cases, if you really cared.
Post has been edited 2 time(s), last time on May 14 2010, 3:16 am by Lanthanide.
None.