Leaderboard help

helpmeplease

New Member
Reaction score
7
I'm trying to remember how to create a leaderboard showing lives. But i've comepletly forgotten. help please.
 

Admit

New Member
Reaction score
25
For more then 1 Player:
Trigger:
  • SetupLBoard
    • Events
      • Time - Elapsed game time is 0.10 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled Lifes
      • For each (Integer A) from 1 to 12, do (If (((Player((Integer A))) slot status) Equal to Is playing) then do (Leaderboard - Add (Player((Integer A))) to (Last created leaderboard) with label Life: and value Life[(Player number of (Player((Integer A))))]) else do (Do nothing))
      • Trigger - Turn on UpdateLBoard <gen>


Trigger:
  • UpdateLBoard
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (If (((Player((Integer A))) slot status) Equal to Is playing) then do (Leaderboard - Change the value for (Player((Integer A))) in (Last created leaderboard) to Life[(Player number of (Player((Integer A))))]) else do (Do nothing))


Or you could use this (if all have the same life):

Trigger:
  • SetupLBoard
    • Events
      • Time - Elapsed game time is 0.10 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled Lifes
      • Leaderboard - Add Player 9 (Gray) to (Last created leaderboard) with label Life left: and value Life
      • Trigger - Turn on UpdateLBoard <gen>

Trigger:
  • UpdateLBoard
    • Events
    • Conditions
    • Actions
      • Leaderboard - Change the value for Player 9 (Gray) in (Last created leaderboard) to Life


Now change the Event on UpdateLBoard to ex: Unit enters a region or every X seconds.
 
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