Multiboard Player Names

Turtlehead91

New Member
Reaction score
0
Ok i have a multiboard that works fine if players are in the right order. (Yes i found a thread like this, but a different problem it was.) But if they go in a different order it won't work. For example. if i am player 11, and somone else is player 1,(2 people playing) it shows player 1 ok, but then it will show a multiboard for player 2 not me. here is my trigger
Trigger:
  • Multiboard
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set PlayersPlaying = (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User)))
      • Set cc_players[0] = |cffffcc00
      • Set cc_players[1] = |c00ff0303
      • Set cc_players[2] = |c000042ff
      • Set cc_players[3] = |c001ce6b9
      • Set cc_players[4] = |c00540081
      • Set cc_players[5] = |c00fffc01
      • Set cc_players[6] = |c00feba0e
      • Set cc_players[7] = |c0020c000
      • Set cc_players[8] = |c00e55bb0
      • Set cc_players[9] = |cff959697
      • Set cc_players[11] = |cff106246
      • Set cc_endtag = |r


and

Trigger:
  • Board Setup
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 4 columns and ((Number of players in PlayersPlaying) + 1) rows, titled (|cff00bfff + Hero Wars Chaos)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (cc_players[0] + (Player Name + cc_endtag))
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (cc_players[0] + (Income + cc_endtag))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to (cc_players[0] + (Kill Ratio + cc_endtag))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to (cc_players[0] + (Overall Score + cc_endtag))
      • For each (Integer A) from 1 to ((Number of players in PlayersPlaying) + 1), do (Actions)
        • Loop - Actions
          • Multiboard - Set the display style for (Last created multiboard) item in column 1, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 2, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 3, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 4, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 9.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 5.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 5.25% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 9.00% of the total screen width
      • Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User))) and do (Actions)
        • Loop - Actions
          • Set player_colour = (player_colour + 1)
          • Set player_row = (player_row + 1)
          • Multiboard - Set the text for (Last created multiboard) item in column 1, row player_row to (cc_players[player_colour](I am pretty sure the problem is here. I can't think of a fix though.)+ ((Name of (Player(player_colour))) + cc_endtag))
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row player_row to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row player_row to 0
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row player_row to 0
      • Multiboard - Show (Last created multiboard)


also, i need this to work with it.

Trigger:
  • IncomeReport
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Player number of (Player((Integer A)))) + 1) to (String(Income[(Integer A)]))

thanks
 
i figured it out. i feel so stupid lol. For the 22 of you who read it and had no clue what to do here is what i did. i added an interger array to stand for the row of the players. it went like this:
Trigger:
  • Multiboard
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 11, 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
              • ((Player((Integer A))) controller) Equal to User
            • Then - Actions
              • Set playervalue = (playervalue + 1)
              • Set Player[(Integer A)] = playervalue
            • Else - Actions
              • Set Player[(Integer A)] = 20


i set the else to 20 because if it was at 0 then my multiboard would be changed in row 1. at 20 nothing happens cause i have no row 20.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      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