HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leaderboard Help!

10-10-2004, 04:29 PM#1
BuRnInSpartan
i made this leaderboard but all that it says is reputation and doesn't list player names or list the amount of reputation the player has?

Actions: Time - Elapsed game time is 5.00 seconds

Condititons: NONE

Events:Leaderboard - Create a leaderboard for (All players) titled Reputation
Set Rep = (Last created leaderboard)
Custom script: set bj_wantDestroyGroup = true
Player Group - Pick every player in LG and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) controller) Equal to User
Then - Actions
Leaderboard - Add (Picked player) to Rep with label (Name of (Picked player)) and value 0
Else - Actions
Do nothing
Leaderboard - Show Rep

--------------------------------Kill count P1-------------------------------------------------------

Events:Unit - A unit Dies

Conditions:(Owner of (Dying unit)) Equal to Neutral Hostile
(Owner of (Killing unit)) Equal to Player 1 (Red)

Actions: Set KillCountP1 = (KillCountP1 + 1)


---------------------------Kill Count Max P1-------------------------------------------------------

Events:Map initialization

Conditions:KillCountP1 Equal to (Min(50, 100))

Actions:Leaderboard - Change the value for Player 1 (Red) in Rep to (RepP1 + 1)
Game - Display to (All players) the text: Player 1 has reciev...
Set KillCountP1 = 0
10-10-2004, 05:45 PM#2
oNdizZ
Quote:
Originally Posted by BuRnInSpartan
i made this leaderboard but all that it says is reputation and doesn't list player names or list the amount of reputation the player has?

Actions: Time - Elapsed game time is 5.00 seconds

Condititons: NONE

Events:Leaderboard - Create a leaderboard for (All players) titled Reputation
Set Rep = (Last created leaderboard)
Custom script: set bj_wantDestroyGroup = true
Player Group - Pick every player in LG and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) controller) Equal to User
Then - Actions
Leaderboard - Add (Picked player) to Rep with label (Name of (Picked player)) and value 0
Else - Actions
Do nothing
Leaderboard - Show Rep

--------------------------------Kill count P1-------------------------------------------------------

Events:Unit - A unit Dies

Conditions:(Owner of (Dying unit)) Equal to Neutral Hostile
(Owner of (Killing unit)) Equal to Player 1 (Red)

Actions: Set KillCountP1 = (KillCountP1 + 1)


---------------------------Kill Count Max P1-------------------------------------------------------

Events:Map initialization

Conditions:KillCountP1 Equal to (Min(50, 100))

Actions:Leaderboard - Change the value for Player 1 (Red) in Rep to (RepP1 + 1)
Game - Display to (All players) the text: Player 1 has reciev...
Set KillCountP1 = 0

Hmm, i dont know if this will change anything, but are you aware of that your "Kill count P1" trigger fires before your first one?
I have the same problem in one of my maps too :/
10-10-2004, 05:51 PM#3
Guest
You guys forgot to do

Show player.

At least tahts what I think its called...
10-10-2004, 08:32 PM#4
Dead-Inside
You can't run anything leaderboard specific on map initilization.
10-10-2004, 09:11 PM#5
Gandalf2349
... or when there is no leaderboard.

Change the last trigger event to elapsed time = 5.1 secs.

second, what is LG?
10-11-2004, 01:45 PM#6
BuRnInSpartan
thanks guys (sorry i was gone yesterday) LG is Leaderboard Group. i thought what was wrong was that it picked neutral hostile and stuff like that so i made a player group called LG

Let me test
10-11-2004, 01:47 PM#7
BuRnInSpartan
Quote:
Originally Posted by oNdizZ
Hmm, i dont know if this will change anything, but are you aware of that your "Kill count P1" trigger fires before your first one?
I have the same problem in one of my maps too :/

no it doesn't... the leaderboard starts within 5 seconds and the P1 kills only starts when a unit dies.... and i have nothing that dies before the leaderboard starts...?
10-11-2004, 03:38 PM#8
oNdizZ
Quote:
Originally Posted by BuRnInSpartan
no it doesn't... the leaderboard starts within 5 seconds and the P1 kills only starts when a unit dies.... and i have nothing that dies before the leaderboard starts...?

Sorry, i meant this one...

---------------------------Kill Count Max P1-------------------------------------------------------

Events:Map initialization

Conditions:KillCountP1 Equal to (Min(50, 100))

Actions:Leaderboard - Change the value for Player 1 (Red) in Rep to (RepP1 + 1)
Game - Display to (All players) the text: Player 1 has reciev...
Set KillCountP1 = 0
10-11-2004, 03:50 PM#9
BuRnInSpartan
well i figured it out but none of yours worked... all i did was delete the if then else and took away the condtions and added the rest under the begining and it worked lol ^_^ the only problem i'm having now is with updating the leaderboard please look http://www.wc3campaigns.com/showthread.php?t=66540
10-11-2004, 11:40 PM#10
Gandalf2349
You should keep it in one thread but whatever.