• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!

[General] two leaderboards?

Status
Not open for further replies.
Is there a way to use two leaderboards? One is for team 1 (1-5), the second is for team 2 (6-10).


  • leaderboard
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled |c0...
      • Set Leaderboard[1] = (Last created leaderboard)
      • Leaderboard - Create a leaderboard for (All players) titled |c0...
      • Set Leaderboard[2] = (Last created leaderboard)
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Leaderboard - Add (Player((Integer A))) to Leaderboard[1] with label (Name of (Player((Integer A)))) and value DAMAGE_DONE[(Player number of (Player((Integer A))))]
            • Else - Actions
      • For each (Integer A) from 6 to 10, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Leaderboard - Add (Player((Integer A))) to Leaderboard[2] with label (Name of (Player((Integer A)))) and value DAMAGE_DONE[(Player number of (Player((Integer A))))]
            • Else - Actions
      • Leaderboard - Change the display style for Leaderboard[1] to Show the title, Show labels, Show values, and Hide icons
      • Leaderboard - Change the display style for Leaderboard[2] to Show the title, Show labels, Show values, and Hide icons
      • Leaderboard - Sort Leaderboard[1] by Value in Descending order
      • Leaderboard - Sort Leaderboard[1] by Value in Descending order
      • Leaderboard - Show Leaderboard[1]
      • Leaderboard - Show Leaderboard[2]

I want to show leaderbaord 1 for 1-5 and 2 for 6-10.

EDIT: I made it it LocalPlayer, however there's a problem. all my teammates are in the leaderboard, but me!

EDIT2: the trigger is working, but is showing leaderbaord 1 for team 2 and leaderbaord 2 for team 1. :O
  • leaderboard
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled |c0...
      • Set Leaderboard[1] = (Last created leaderboard)
      • Leaderboard - Create a leaderboard for (All players) titled |c0...
      • Set Leaderboard[2] = (Last created leaderboard)
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Leaderboard - Add (Player((Integer A))) to Leaderboard[1] with label (Name of (Player((Integer A)))) and value DAMAGE_DONE[(Player number of (Player((Integer A))))]
              • Custom script: if GetLocalPlayer() == udg_Player[GetForLoopIndexA()] then
              • Leaderboard - Show Leaderboard[1]
              • Custom script: endif
            • Else - Actions
      • For each (Integer A) from 6 to 10, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Leaderboard - Add (Player((Integer A))) to Leaderboard[2] with label (Name of (Player((Integer A)))) and value DAMAGE_DONE[(Player number of (Player((Integer A))))]
              • Custom script: if GetLocalPlayer() == udg_Player[GetForLoopIndexA()] then
              • Leaderboard - Show Leaderboard[2]
              • Custom script: endif
            • Else - Actions
      • Leaderboard - Change the display style for Leaderboard[1] to Show the title, Show labels, Show values, and Hide icons
      • Leaderboard - Change the display style for Leaderboard[2] to Show the title, Show labels, Show values, and Hide icons
      • Leaderboard - Sort Leaderboard[1] by Value in Descending order
      • Leaderboard - Sort Leaderboard[1] by Value in Descending order
 
Last edited:
Status
Not open for further replies.
Top