Question about Leaderboard

brodygs9630

TH.net Regular
Reaction score
6
I was wondering if there was any way that I could make a leader boad that says the player name on one side,and either Dead or Alive on the other.I want it so that each time someone dies,it updates,and changes the Alive to Dead.Help = +Rep
 

Sim

Forum Administrator
Staff member
Reaction score
534
If you're planning to show more stats during your game you should use a multiboard.

Anyways.

Trigger:
  • Leaderboard
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled (Your Title Here)
      • Player Group - Pick every player in (All players) 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 (Last created leaderboard) with label (Name of (Picked player)) and value Alive
            • Else - Actions
      • Leaderboard - Show (Last created leaderboard) // (Must come last)


Trigger:
  • Trigger Tally Score
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Leaderboard - Change the value for (Owner of (Dying unit)) in (Last created leaderboard) to Dead
      • Leaderboard - Sort (Last created leaderboard) by Value in Descending order
      • Wait (Revive time) seconds
      • Leaderboard - Change the value for (Owner of (Dying unit)) in (Last created leaderboard) to Alive


That's only if the revive timer is fixed though.
 

brodygs9630

TH.net Regular
Reaction score
6
Trigger Tally Score
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Leaderboard - Change the value for (Owner of (Dying unit)) in (Last created leaderboard) to Dead
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Wait (Revive time) seconds
Leaderboard - Change the value for (Owner of (Dying unit)) in (Last created leaderboard) to Alive


Can I take that part out?
 

brodygs9630

TH.net Regular
Reaction score
6
Nevermind,not making the leaderboard.Thought about it,and theres no need for my map.Im just gonna make it so that it displays a message to everyone that the hero died.thanks for the help anyways:thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top