• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Leaderboard problems 2

Status
Not open for further replies.
Level 9
Joined
Oct 6, 2007
Messages
406
I made the leaderboard, figured everything out, changed everything to the players, blah blah. When I test the map, the leaderboard shows up, but it only shows the title of the leaderboard, thats it. It doesn't show me, or how many kills i got. Whats wrong with it?

There are 5 players in the game, including red. I didn't put the other 4 players, so is it possible it won't show because of that?

P.S. YES I have all the variables i need!
 
Level 9
Joined
Oct 6, 2007
Messages
406
There you go ^^

I only took a screen of the trigger for Red (1/5) and the actual Leaderboard trigger (is in a seperate trigger)
 

Attachments

  • Leaderboard for Red.jpg
    Leaderboard for Red.jpg
    46.4 KB · Views: 123
  • Leaderboard trigger.jpg
    Leaderboard trigger.jpg
    75 KB · Views: 135
Level 2
Joined
Jan 5, 2008
Messages
22
MISTAKE
About the second trigger: You've put any player's name as the "picked player". but you've never picked them.... that might be a problem.
Sorry, It's a mistake. I didn't saw that you picked em.:nw:
 
Level 2
Joined
Jan 5, 2008
Messages
22
Another thingie: does the game works only if there were all 5 players? cuz' you've made the leaderboard to add the players only if all conditions are true, which are that all 5 players are in, and all 5 players are playing.
 
Level 2
Joined
Jan 5, 2008
Messages
22
No. You did not understood.

If/then/else: IfALL CONDITIONS ARE TRUE
That means you will only see the leaderboard only when all 5 player are playing
 
Level 2
Joined
Jan 5, 2008
Messages
22
If then else with only one condition and only one action. at the conditions you put condition 1 or condition 2. And you continue the row.
 
Level 2
Joined
Jan 5, 2008
Messages
22
do another trigger as event - none; condition - this trigger is on; action - leaderboard- change players name to name of picked player
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Is this how you do it?

It works. I tested it, and it works! Only problem is, it shows my name as "Computer(Normal) Also, it won't show blue, but it shows the other 4 (including red)

It's because your if/then/else action in the "pick every player" contains:
"Player 1(red) is a user" ==> must be "picked player"
then do "add player 1" ==> must be add "picked player"
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
so... why is the script there? (yes... why :p)

I don't know when a player is killed, but if every player has a hero with 1 life, you could do something like

  • Events
    • Unit - a unit is killed
  • Conditions
    • Dying unit is a hero equal to true (boolean)
  • Actions
    • Player - defeat (owner of dying unit)
    • Leaderboard - change label of (owner of dying unit) to "Dead"
But it depends on when a player "dies"
 
Status
Not open for further replies.
Top