• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Multiboard problem

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2013
Messages
1,105
So my multiboard fails when it people don't play in subsequent slots (red,blue,teal,purp...) and when a person leaves, I'm sure it has to do with the CurrentRow but yeah...I've fooled around with it and can't get it operate.. Any help would be amazing :p!

  • MultiBoard
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Set Players = (Number of players in (All players matching ((((Matching player) controller) Equal to (==) User) and (((Matching player) slot status) Equal to (==) Is playing))))
      • Multiboard - Create a multiboard with 4 columns and (Players + 1) rows, titled |cff00ff00Scoreboar...
      • Set Multiboard = (Last created multiboard)
      • Multiboard - Set the text for Multiboard item in column 1, row 1 to Names
      • Multiboard - Set the text for Multiboard item in column 2, row 1 to Kills
      • Multiboard - Set the text for Multiboard item in column 3, row 1 to Points
      • Multiboard - Set the text for Multiboard item in column 4, row 1 to R.Wins
      • Multiboard - Set the display style for Multiboard item in column 0, row 0 to Show text and Hide icons
      • Multiboard - Set the width for Multiboard item in column 1, row 0 to 8.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 2, row 0 to 3.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 3, row 0 to 4.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 4, row 0 to 3.00% of the total screen width
      • Set CurrentRow = 2
        • Do Multiple ActionsFor each (Integer TempInteger) from 1 to 11, do (Actions)
          • Loop - Actions
            • Set TempPlayer = (Player(TempInteger))
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (TempPlayer controller) Equal to (==) User
                  • (TempPlayer slot status) Equal to (==) Is playing
                • Then - Actions
                  • Multiboard - Set the text for Multiboard item in column 1, row CurrentRow to (playerColors[TempInteger] + (RealNames[TempInteger] + colorEnd))
                • Else - Actions
            • Set CurrentRow = (CurrentRow + 1)
      • Multiboard - Show Multiboard
      • Trigger - Turn on Multiboard Update FFA <gen>
  • Multiboard Update FFA
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set CurrentRow = 2
        • Do Multiple ActionsFor each (Integer TempInteger) from 1 to 11, do (Actions)
          • Loop - Actions
            • Set TempPlayer = (Player(TempInteger))
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (TempPlayer slot status) Equal to (==) Is playing
                  • (TempPlayer controller) Equal to (==) User
                • Then - Actions
                  • Multiboard - Set the text for Multiboard item in column 3, row CurrentRow to (String(TotalPoints[TempInteger]))
                • Else - Actions
                  • Multiboard - Set the text for Multiboard item in column 3, row CurrentRow to --
            • Set CurrentRow = (CurrentRow + 1)
      • Set CurrentRow = 2
        • Do Multiple ActionsFor each (Integer TempInteger) from 1 to 11, do (Actions)
          • Loop - Actions
            • Set TempPlayer = (Player(TempInteger))
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (TempPlayer slot status) Equal to (==) Is playing
                  • (TempPlayer controller) Equal to (==) User
                • Then - Actions
                  • Multiboard - Set the text for Multiboard item in column 2, row CurrentRow to (String(Kills[TempInteger]))
                • Else - Actions
                  • Multiboard - Set the text for Multiboard item in column 2, row CurrentRow to --
            • Set CurrentRow = (CurrentRow + 1)
      • Set CurrentRow = 2
        • Do Multiple ActionsFor each (Integer TempInteger) from 1 to 11, do (Actions)
          • Loop - Actions
            • Set TempPlayer = (Player(TempInteger))
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (TempPlayer slot status) Equal to (==) Is playing
                  • (TempPlayer controller) Equal to (==) User
                • Then - Actions
                  • Multiboard - Set the text for Multiboard item in column 4, row CurrentRow to (String(RoundWins[TempInteger]))
                • Else - Actions
                  • Multiboard - Set the text for Multiboard item in column 4, row CurrentRow to --
            • Set CurrentRow = (CurrentRow + 1)
 
Status
Not open for further replies.
Top