HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger/multiboard help(AGAIN SORRY VEX)

04-18-2006, 03:41 AM#1
samir555
How can i check the value of a leaderboard?
I am making a map where you need to kill 2000 of some unit(CLASSIFIED)I want to know how to make a trigger that checks multiboard values in order to declare victory to a player.

Any help would be appreciated

Thanks
04-18-2006, 03:50 AM#2
knutz
Quote:
Originally Posted by samir555
How can i check the value of a leaderboard?
I am making a map where you need to kill 2000 of some unit(CLASSIFIED)I want to know how to make a trigger that checks multiboard values in order to declare victory to a player.

Any help would be appreciated

Thanks

Set up a global array indexed on player number and store the scores in there.
Then just post the score on the multiboard when it changes.

If you want it in score order, set the leaderboard to be ordered by the kill value, and set the row of the multiboard to the player's leaderboard position. (PS: Leaderboard is hidden,Multiboard is shown)

The DotA Template gives a good example of this. I'd post the code, but will have to wait until I'm home from work
04-18-2006, 03:53 AM#3
Immoralis
Quote:
Originally Posted by samir555
How can i check the value of a leaderboard?
I am making a map where you need to kill 2000 of some unit(CLASSIFIED)I want to know how to make a trigger that checks multiboard values in order to declare victory to a player.

Any help would be appreciated

Thanks

no one cares what kind of unit you are trying to hide...

anyway why are u checking the value of ur leaderboard?... you should have the values stored in some kind of array anyway so can can just get the info from the array
04-18-2006, 07:33 AM#4
knutz
Quote:
Originally Posted by Immoralis
no one cares what kind of unit you are trying to hide...

anyway why are u checking the value of ur leaderboard?... you should have the values stored in some kind of array anyway so can can just get the info from the array

Meanie! But quite right. The only thing I reckon a leaderboard is good for is sorting display order on a multiboard.

Anyway, here's what I reckon the answer is:
Leader-Multiboard Kills.w3x
Attached Files
File type: w3xLeader-Multiboard Kills.w3x (20.4 KB)