HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leaderboard Problem

01-28-2003, 11:47 PM#1
Fragmentation
ok i followed 3dguys tutorial on making a leaderboard, and i went through it all

then i go to test the map, but the problem is every time a person gets the kill and is to be triggered to add 1 to the kill chart, it doesnt

the number just goes from 0 to 4 tnot 0 to 1 then jus stops, no more number increase after that

anyway whats up? what did i do wrong?
01-29-2003, 12:14 AM#2
rwxr-xr-x
It depends on how you are updating the board. If you updating at set intervals (say every 10 seconds), then the kill count on the board would only reflect the value at that given time.

A lot of people use this method, but I prefer to update the board when a kill is made, not during set intervals. Create a seperate trigger that does nothing but update the board, and when you detect a kill, add that trigger to the trigger queue (don't forget to remove the trigger from the trigger queue). This will insure that kills are updated one at a time, and adding it to the trigger queue will enforce smoother updates.

With that said, there will be times when someone may kill more than one unit at the same time (like from a splash dmg attack), in which case, your kill count will probably jump by more than one at a single time.
01-29-2003, 12:30 AM#3
Fragmentation
theres no splash dmg i tested it

i set up one unit to be killed by lets say blue

when blue killed the one unit it went form 0 - 4

emote_confused
01-29-2003, 12:55 AM#4
rwxr-xr-x
Quote:
Originally posted by NightBlade
theres no splash dmg i tested it

i set up one unit to be killed by lets say blue

when blue killed the one unit it went form 0 - 4

emote_confused


Then you are apparently using the wrong variable for the value field of the leaderboard, or somehow it is being incremented more than once from one kill. An interesting test would be, if you killed 2 units, would the count go to 8?
01-29-2003, 03:40 AM#5
Fragmentation
it wont be able to test more than 1 kill cuz once one kill is done it pops from 0-4 then it jus stops queuing up more on the leaderboard so it stays at 4
01-29-2003, 04:26 AM#6
DaKaN
best thing to do is post the map so we can see the code...