HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leaderboard Value

03-27-2004, 08:22 PM#1
pappi.chullo
What function or value is used to count the total amount of a unit type in the map?

I used 2 alraedy:

Leaderboard - Add Neutral Passive to (Last created leaderboard) with label Pigs in Field: and value (Number of units in (Units of type Pig))

-and-

Leaderboard - Add Neutral Passive to (Last created leaderboard) with label Pigs in Field: and value (Number of living Pig units owned by Neutral Passive)
03-27-2004, 08:27 PM#2
ThyFlame
I'm not quite sure... but can't you use an integer variable for your leaderboard field? Then you could just set that variable to the total # of pigs before updating the board.
03-27-2004, 08:28 PM#3
zotax
I think what you want is this function:
Unit-Count units in Unit group-(Units of type X)
So you should have it something like this:
Number of units in (unit type Pig)
03-27-2004, 09:36 PM#4
pappi.chullo
@ zotax

I specified that I used that value at the first post:
Leaderboard - Add Neutral Passive to (Last created leaderboard) with label Pigs in Field: and value (Number of units in (Units of type Pig))

o_O