• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Hard Multiboard... HELP!

Status
Not open for further replies.
Level 7
Joined
Apr 13, 2008
Messages
183
Hi all! If someone can find time to help me with the making with a good multiboard that shows names of players in the game (except player 5,6,11 and 12 because they are computers), shows kills and shows deaths. It must be without any icons and every player's name to be in the color he is. Thanks a lot! :ugly:
 
Level 3
Joined
Jun 6, 2007
Messages
48
First we have to setup a multiboard:

  • Set up Multiboard
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Comments: Set up the variables for colour etc
      • Set MB_Players = (All players matching (((Matching player) slot status) Equal to Is playing))
      • Set MB_PlayerColour[0] = |cffffcc00
      • Set MB_PlayerColour[1] = |c00ff0303
      • Set MB_PlayerColour[2] = |c000042ff
      • Set MB_PlayerColour[3] = |c001ce6b9
      • Set MB_PlayerColour[4] = |c00540081
      • Set MB_PlayerColour[5] = |c00fffc01
      • Set MB_PlayerColour[6] = |c00feba0e
      • Set MB_PlayerColour[7] = |c0020c000
      • Set MB_PlayerColour[8] = |c00e55bb0
      • Set MB_EndColourTag = |r
      • For each (Integer B) from 1 to 8, do (Actions)
        • Loop - Actions
          • Comments: Set our kills to 0 when the map is started
          • Set MB_PlayerKills[(Integer B)] to 0
          • Set MB_PlayerDeaths[(Integer B)] to 0
      • Comments: This is where we initially make our board
      • Multiboard - Create a multiboard with 3 columns and (1 + (Number of players in MB_Players)) rows, titled Game Statistics
      • Set MB_Main = (Last created multiboard)
      • Multiboard - Set the text for MB_Main item in column 1, row 1 to (MB_PlayerColour[0] + ([Player] + MB_EndColourTag))
      • Multiboard - Set the text for MB_Main item in column 2, row 1 to (MB_PlayerColour[0] + ([Kills] + MB_EndColourTag))
      • Multiboard - Set the text for MB_Main item in column 3, row 1 to (MB_PlayerColour[0] + ([Deaths] + MB_EndColourTag))
      • For each (Integer A) from 1 to (Number of players in MB_Players), do (Actions)
        • Loop - Actions
          • Comments: This is where we define our multiboard
          • Multiboard - Set the display style for MB_Main item in column 1, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the width for MB_Main item in column 1, row (Integer A) to 6.00% of the total screen width
          • Multiboard - Set the display style for MB_Main item in column 2, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the width for MB_Main item in column 2, row (Integer A) to 6.00% of the total screen width
          • Multiboard - Set the display style for MB_Main item in column 3, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the width for MB_Main item in column 3, row (Integer A) to 6.00% of the total screen width
          • Comments: This is where we add people
          • Set MB_PlayerRow = (player_row + 1)
          • Set MB_PlayerColour = (player_colour + 1)
          • Multiboard - Set the text for MB_Main item in column 1, row MB_PlayerRow to (MB_ColourCode[MB_PlayerColour] + ((Name of (Player(MB_PlayerColour))) + MB_EndColourTag))
          • Multiboard - Set the text for MB_Main item in column 2, row MB_PlayerRow to (String(MB_PlayerKills[MB_PlayerColour]))
          • Multiboard - Set the text for MB_Main item in column 3, row MB_PlayerRow to (String(MB_PlayerDeaths[MB_Playercolour]))
        • Multiboard - Show MB_Main
Then to simply update it you could use:

  • Update Kills
    • Events
      • A Unit owned by Player 1(Red) dies
    • Conditions
      • (OPTIONAL)Unit equal to Hero
    • Actions
      • Set MB_PlayerDeaths[1] = (MB_PlayerDeaths[1] + 1)
      • Multiboard - Set the text for MB_Main item in column 2, row 2 to (String(MB_PlayerDeaths[1]))
Can also be used for kills.
 
Status
Not open for further replies.
Top