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!
This is the trigger that creates the leaderboard and sets it as variable "GameSTATS" or watever you want it to be.
Leaderboard create
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Hero Kills
Set GameSTATS = (Last created leaderboard)
Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
Loop - Actions
Leaderboard - Add (Picked player) to GameSTATS with label (Name of (Picked player)) and value 0
This trigger updates it using the variable "HeroKills" which is an array of size 10 (for 10 players. As long as its above the number you need then it will work)
Leaderboard update
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
(Owner of (Dying unit)) Not equal to (Owner of (Killing unit))
Actions
Set HeroKills[(Player number of (Owner of (Killing unit)))] = (HeroKills[(Player number of (Owner of (Killing unit)))] + 1)
Leaderboard - Change the value for (Owner of (Killing unit)) in GameSTATS to HeroKills[(Player number of (Owner of (Killing unit)))]
Leaderboard - Sort GameSTATS by Value in Descending order
The second condition in this trigger is so you cant kill your own hero to get a point.
This trigger changes their name to "---QUIT---" if they leave.
Leavers
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Conditions
Actions
Leaderboard - Change the label for (Triggering player) in (Last created leaderboard) to ---QUIT---
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.