• 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

Status
Not open for further replies.
Level 4
Joined
Oct 28, 2005
Messages
77
a leaderboard that the player whit the most kills in some time wins, or if thats not passible the one that gets f.exs 55 kills Wins!!

do you understand, if not sry for my bad grammar in english!!
 
Level 6
Joined
Aug 12, 2005
Messages
205
You need to create an integer array varable. Then, create a trigger:
Event:
:arrow: A unit dies
Actions:
:arrow: Set VARIABLE [player number of owner of killing unit] = VARIABLE [player number of owner of killing unit] + 1.
:arrow: Change the value for owner of killing unit in last created multiboard to VARIABLE [number of owner of killing unit!

This is the trigger that changes the value for when a player kills a unit. If you don't know how to start creating a leaderboard, Post here and I may tell you. :wink:

Hope that helped.
 
Level 6
Joined
Aug 12, 2005
Messages
205
Here are the actions:

:arrow: Create a leaderboard for all players titled (here you put the name you want to the leaderboard)
:arrow: Add player to last created leaderboard with label [name of player] and value 0 (Repeat this last action to all players you want to put in the leaderboard, or just use the action Pick every player...)
([/b]Is also advisable to you use the actions Change player label color and change player value color to display the name and the value of the the player in the leaderboard with it's own color, example, display the player 1 in the leaderboard with the red color. It is opitional but useful. [/b]
:arrow: Change the display style for last created leaderboard to show the title, show labels, show values, and show or hide here is optional icons.
:arrow: Show last created multiboard


I think that these are the unique actions needed to create a leaderboard. The action to change value I already said. Tell me again if this way not work, because I never created a leaderboard before, only Multiboards. :wink:

Oh, and remember, Leaderboards cannot be created at map initialization, then, use the event Elapsed game time is 0.1 second in this trigger. :wink:
 
Status
Not open for further replies.
Top