Leaderboard Headings

Dave312

Censored for your safe viewing
This should be something rather simply, but I just can't seem to figure out where the problem is. I'm trying to create simple leaderboard where the first row has the titles of each column, then underneath it lists all the players. Below is the trigger I'm using:
Trigger:
  • Build Leaderboard
    • Events
    • Local Variables
      • i = 0 <Integer>
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard with 3 columns and 1 rows, with the name "", and using (100%, 100%, 100%) color.
      • Variable - Set Leaderboard = (Last created leaderboard)
      • Leaderboard - Change Leaderboard to have 2 groups
      • Leaderboard - Move row 1 into group 1 in Leaderboard
      • Leaderboard - Set Leaderboard item text at column 1 and row 1 to "Player"
      • Leaderboard - Set the automatic player column for Leaderboard to column 1 (Do Not group by teams)
      • Leaderboard - Set Leaderboard item text at column 2 and row 1 to "Status"
      • Leaderboard - Set Leaderboard item text at column 3 and row 1 to "Kills"
      • Leaderboard - Disable Show Title state for Leaderboard for (All players)
      • ------- Add Players
      • General - For each integer i from 1 to 10 with increment 1, do (Actions)
        • Actions
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • (Status of player i) == Playing
              • (Controller of player i) == User
            • Then
              • Leaderboard - Add player i to Leaderboard
              • Leaderboard - Move row (i + 1) into group 2 in Leaderboard
              • Leaderboard - Set Leaderboard item icon at column 1 and row (i + 1) to Players<i>.Icon, placing it on the Left side of the text
              • Update Player Kills(i)
              • Update Player Status(i)
            • Else
    • </i>

All the players are being added correctly and the correct information displayed, but for some reason, none on the titles are being shown (see attached image). If I disable the part of the trigger which adds players, the leaderboard comes up as being empty. Any ideas to to what is causing this issue/how to solve it?

Thanks

Screenshot2012-01-31 19_54_39.jpg
 

Dave312

Censored for your safe viewing
So I finally managed to figure this one out. When setting the row titles, you need to use the preset Header when referencing the row number.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Jesus4Lyf Jesus4Lyf:
    Hmm, how to summarize... Moved to the USA and got married. Became a professional software engineer and solution lead. Learning Godot for game dev. :)
  • jonas jonas:
    So you are pursuing game dev as a hobby? What industry is your dayjob in?
  • jonas jonas:
    FAANG?
  • Jesus4Lyf Jesus4Lyf:
    Not quite FAANG, less pay for a less hours/stress. Yeah, game dev as a hobby.
  • jonas jonas:
    makes sense. Do we have a hobby game dev subforum to showcase some work?
  • Blackveiled Blackveiled:
    Happy Thursday
    +1
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    TGIF!
  • The Helper The Helper:
    hey tom_mai please do not archive anymore news
  • Ghan Ghan:
    AMD Ryzen 7000 next week :D
    +1
  • The Helper The Helper:
    noice!
  • tom_mai78101 tom_mai78101:
    "hey tom_mai please do not archive anymore news" ----> Got it. What should we do with the "News Archive" subforum?
  • The Helper The Helper:
    I think leave it for real old news that cannot be sorted the reason we had it in the first place was a server issue that we do not have anymore. I don't want to get rid of the archive just not put anything in it for now until we figure it out more
  • The Helper The Helper:
    The side chat has nothing on the discord. it is not possible but the biggest thing on my wish list right now is a sidechat channel on the disord that hooks up to this...
  • Ghan Ghan:
    I've been selected for the Diablo IV beta.
    +1
  • Ghan Ghan:
    Woo!
    +1
  • The Helper The Helper:
    that is so cool
  • V-SNES V-SNES:
    Eh just noticed the new discord section on the side. Looks great!
    +1
  • Blackveiled Blackveiled:
    :( feels bad I can't ever get selected for any beta I sign up for. It's annoying as heck.
    +1
  • The Helper The Helper:
    Hello mgarcia! Happy Monday everyone!
  • The Helper The Helper:
    Happy Tuesday! :)

    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