• 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.

Multiboard Help!

Status
Not open for further replies.
Level 5
Joined
Nov 13, 2008
Messages
41
Can someone please make me a 12 Player Multiboard that would vary depending of the number of players in the game. The table should have 4 columns.


[-][Units Killed][Heroes Killed][Points]
[-][----------][------------][------]
[P2 NAME + COLOR][UK + COLOR][HK + COLOR][POINTS+COLOR]
...
[P6 NAME + COLOR][UK + COLOR][HK + COLOR][POINTS+COLOR]
[-][TOTAL UK + P1 COLOR][TOTAL HK + P1 COLOR][TOTAL POINTS+ P1 COLOR]
[-][-][-][-]
SAME FOR THE SECOND TEAM
P8
P9
P10
P11
P12
P7 (TOTAL FROM ALL)

Just like that. Depending on the number of players the table should have from 6 to 15 rows.

Now I made the table but WC3 keeps crashing for no reason.(because of the table). I saved the player colors in variables Colors[Array:1-12] I know I'm asking too much but please, if anyone can help it will be greatly appreciated. I will send you the current codes [in GUI] (I can't code in Jass).
 
Level 4
Joined
Dec 5, 2011
Messages
75
i could help you with GUI but i dont know how to do it with jass
anyway with GUI its like this:

  • Events
    • Time - Elapsed game time is 1.00 seconds
  • Conditions
  • Actions
    • Set Player_Count = (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 (1 + Player_Count) rows, titled "MULTIBOARD TITLE")
    • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to "ROW1 NAME"
    • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to "ROW2 NAME"
    • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to "ROW3 NAME"
    • For each (Integer A) from 1 to (1 + Player_Count), 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 width for (Last created multiboard) item in column 1, row (Integer A) to 6.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.00% of the total screen width
    • Set List = 2
    • 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 Multiboard_Spots[(Player number of (Picked player))] = List
        • Multiboard - Set the text for (Last created multiboard) item in column 1, row List to (Player_Colors[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
        • Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
        • Set List = (List + 1)
    • Multiboard - Show (Last created multiboard)
all the variables are integers
 
  • Like
Reactions: Ras
Status
Not open for further replies.
Top