HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need help with my leaderboard

09-25-2004, 02:07 AM#1
grd
I have my leaderboard into two sections, Update Board and Setup Board under these headings I have:

Update Board

events
conditions
actions
- For each (Integer A) from 1 to 12, do (if (((Player(((Integer A))) slot status) Equal to is playing) then do (Leaderboard - Change the value for (Player(((Integer A))) in theboard to kills (((Integer A))) else do (Do nothing))

- Leaderboard - Sort theboard by Value in Desending order

Setup Board

event
-Time - Elapsed game time is 0.01 seconds
conditions
actions
-Leaderboard - Create a leaderboard for (All players) titled player kill count
-Set theboard = (Last created leaderboard)
-For each (Integer A) from 1 to 12, do if (((Player (((Integer A))) slot status) Equal to is playing) then do (Leaderboard - Add (Player (((Integer A))) to theboard with the lable ( Name of (Player (((Integer A))) and value 0) else do (Do nothing)

I also had two Variables
-kills Integer Arry(1) 0(Default)
-theboard Leaderboard - None -

So can you plz plz plz plz help me if you know what I have to do to get my leaderboard working
09-25-2004, 08:11 AM#2
ObsidianTitan
What exactly is the problem you are having with it?
09-25-2004, 09:44 AM#3
grd
It doesn't count the kills
09-25-2004, 09:50 AM#4
AFB-DieHard
Is the right number of kills saved in the variable, or is this the problem?
09-25-2004, 10:05 AM#5
grd
What do you mean "the right number of kills saved in the variable" ???????????
09-25-2004, 10:16 AM#6
ObsidianTitan
Do you have something like this to keep track of kills?

unit dies
set kills(player number of killing unit) = kills(same as before)+1
09-25-2004, 11:34 AM#7
grd
I knew I was missing something, thank you for all of your help