Multiboard help

Stelvio

New Member
Reaction score
1
So I want to creat a multiboard for each player.
I used this trigger for player 1 (Red)
Trigger:
  • Multiboard 1
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 4 columns and 13 rows, titled Resources
      • Set MultiBoardNr[1] = (Last created multiboard)
      • For each (Integer A) from 1 to 13, do (Actions)
        • Loop - Actions
          • 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 6.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 9.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 6.00% of the total screen width
          • -------- ---------------------------------- --------
          • 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
      • -------- ROW 1 RESOURCES --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (ColorText + ([Type] + ColorSuffix))
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (ColorText + ([Amount] + ColorSuffix))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to (ColorText + (Type + ColorSuffix))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to (ColorText + ([Amount] + ColorSuffix))
      • -------- Row 2 IRON + STEEL --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to Iron
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNCassiterite.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 2 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(ResourceIron[1]))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to Steel
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 2 to ReplaceableTextures\CommandButtons\BTNINV_Ingot_Steel.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 2 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(ResourceSteel[1]))
      • -------- ROW 3 COPPER + BRONZE --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to Copper
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 3 to ReplaceableTextures\CommandButtons\BTNINV_Ore_Copper_01.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 3 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (String(ResourceCopper[1]))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to Bronze
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 3 to ReplaceableTextures\CommandButtons\BTNINV_Ingot_Bronze.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 3 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 3 to (String(ResourceBronze[1]))
      • -------- ROW 4 TIN --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to Tin
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 4 to ReplaceableTextures\CommandButtons\BTNINV_Ore_Tin_01.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 4 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to (String(ResourceTin[1]))
      • -------- ROW 5 STONE + BRICKS --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to Stone
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 5 to ReplaceableTextures\CommandButtons\BTNINV_Stone_12.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 5 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to (String(ResourceStone[1]))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 5 to Bricks
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 5 to ReplaceableTextures\CommandButtons\BTNINV_Misc_StoneTablet_02.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 5 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 5 to (String(ResourceBricks[1]))
      • -------- ROW 6 LUMBER + PLANKS --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 6 to Lumber
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 6 to ReplaceableTextures\WorldEditUI\Doodad-Destructible.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 6 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 6 to (String(ResourceLumber[1]))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 6 to Planks
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 6 to ReplaceableTextures\CommandButtons\BTNHumanLumberUpgrade2.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 6 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 6 to (String(ResourcePlanks[1]))
      • -------- ROW 7 GOLD --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 7 to Gold
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 7 to ReplaceableTextures\CommandButtons\BTNChestOfGold.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 7 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 7 to (String(ResourceGold[1]))
      • -------- ROW 8 NIKS --------
      • -------- ROW 9 OIL + GASOLINE --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 9 to Oil
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 9 to ReplaceableTextures\CommandButtons\BTNFireRocks.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 9 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 9 to (String(ResourceOil[1]))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 9 to Gasoline
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 9 to ReplaceableTextures\CommandButtons\BTNMotor.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 9 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 9 to (String(ResourceGasoline[1]))
      • -------- ROW 10 POWER --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 10 to Power
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 10 to ReplaceableTextures\CommandButtons\BTNP_Lightning.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 10 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 10 to (String(ResourcePower[1]))
      • -------- ROW 11 NIKS --------
      • -------- ROW 12 ALUMINUM --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 12 to Aluminum
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 12 to ReplaceableTextures\CommandButtons\BTNResistantSkin.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 12 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 12 to (String(ResourceAlumium[1]))
      • -------- ROW 13 URANIUM --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 13 to Uranium
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 13 to ReplaceableTextures\CommandButtons\BTNNarcainian Energy Orb.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 13 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 13 to (String(ResourceUranium[1]))
      • Multiboard - Hide MultiBoardNr[1]
      • Custom script: if ( GetLocalPlayer() == Player(0) ) then
      • Multiboard - Show MultiBoardNr[1]
      • Custom script: endif

This works but when I try it for player 2 (Blue) the multiboard doesn't show
here is the code for player 2

Trigger:
  • Multiboard 2
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 4 columns and 13 rows, titled Resources
      • Set MultiBoardNr[2] = (Last created multiboard)
      • For each (Integer A) from 1 to 13, do (Actions)
        • Loop - Actions
          • 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 6.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 9.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 6.00% of the total screen width
          • -------- ---------------------------------- --------
          • 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
      • -------- ROW 1 RESOURCES --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (ColorText + ([Type] + ColorSuffix))
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (ColorText + ([Amount] + ColorSuffix))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to (ColorText + (Type + ColorSuffix))
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to (ColorText + ([Amount] + ColorSuffix))
      • -------- Row 2 IRON + STEEL --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to Iron
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNCassiterite.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 2 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(ResourceIron[2]))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to Steel
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 2 to ReplaceableTextures\CommandButtons\BTNINV_Ingot_Steel.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 2 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(ResourceSteel[2]))
      • -------- ROW 3 COPPER + BRONZE --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to Copper
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 3 to ReplaceableTextures\CommandButtons\BTNINV_Ore_Copper_01.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 3 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (String(ResourceCopper[2]))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to Bronze
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 3 to ReplaceableTextures\CommandButtons\BTNINV_Ingot_Bronze.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 3 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 3 to (String(ResourceBronze[2]))
      • -------- ROW 4 TIN --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to Tin
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 4 to ReplaceableTextures\CommandButtons\BTNINV_Ore_Tin_01.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 4 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to (String(ResourceTin[2]))
      • -------- ROW 5 STONE + BRICKS --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to Stone
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 5 to ReplaceableTextures\CommandButtons\BTNINV_Stone_12.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 5 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 5 to (String(ResourceStone[2]))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 5 to Bricks
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 5 to ReplaceableTextures\CommandButtons\BTNINV_Misc_StoneTablet_02.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 5 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 5 to (String(ResourceBricks[2]))
      • -------- ROW 6 LUMBER + PLANKS --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 6 to Lumber
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 6 to ReplaceableTextures\WorldEditUI\Doodad-Destructible.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 6 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 6 to (String(ResourceLumber[2]))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 6 to Planks
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 6 to ReplaceableTextures\CommandButtons\BTNHumanLumberUpgrade2.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 6 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 6 to (String(ResourcePlanks[2]))
      • -------- ROW 7 GOLD --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 7 to Gold
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 7 to ReplaceableTextures\CommandButtons\BTNChestOfGold.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 7 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 7 to (String(ResourceGold[2]))
      • -------- ROW 8 NIKS --------
      • -------- ROW 9 OIL + GASOLINE --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 9 to Oil
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 9 to ReplaceableTextures\CommandButtons\BTNFireRocks.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 9 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 9 to (String(ResourceOil[2]))
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 9 to Gasoline
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 9 to ReplaceableTextures\CommandButtons\BTNMotor.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 9 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 9 to (String(ResourceGasoline[2]))
      • -------- ROW 10 POWER --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 10 to Power
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 10 to ReplaceableTextures\CommandButtons\BTNP_Lightning.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 10 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 10 to (String(ResourcePower[2]))
      • -------- ROW 11 NIKS --------
      • -------- ROW 12 ALUMINUM --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 12 to Aluminum
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 12 to ReplaceableTextures\CommandButtons\BTNResistantSkin.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 12 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 12 to (String(ResourceAlumium[2]))
      • -------- ROW 13 URANIUM --------
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 13 to Uranium
      • Multiboard - Set the icon for (Last created multiboard) item in column 1, row 13 to ReplaceableTextures\CommandButtons\BTNNarcainian Energy Orb.blp
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 13 to Show text and Show icons
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 13 to (String(ResourceUranium[2]))
      • Multiboard - Hide MultiBoardNr[2]
      • Custom script: if ( GetLocalPlayer() == Player(1) ) then
      • Multiboard - Show MultiBoardNr[2]
      • Custom script: endif


Can u tell me when i'm doing wrong?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, what is it that doesn't work :S
Doesn't the multiboard show at all, or what ? :S

Also, meybe add the triggers where you set all the variables you're using ;)
 

Stelvio

New Member
Reaction score
1
okay , well the multiboard is showing when i play red but when i'm blue it doesn't show
here is the code for the vars
Trigger:
  • Resources init
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set ResourceIron[(Integer A)] = 0
          • Set ResourceCopper[(Integer A)] = 0
          • Set ResourceGold[(Integer A)] = 0
          • Set ResourceLumber[(Integer A)] = 0
          • Set ResourceStone[(Integer A)] = 0
          • Set ResourceTin[(Integer A)] = 0
          • Set ResourceOil[(Integer A)] = 0
          • Set ResourcePower[(Integer A)] = 0
          • Set ResourceAlumium[(Integer A)] = 0
          • Set ResourceUranium[(Integer A)] = 0
          • Set ResourceAlumium[2] = 500


Trigger:
  • Resources init
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set ResourceIron[(Integer A)] = 0
          • Set ResourceCopper[(Integer A)] = 0
          • Set ResourceGold[(Integer A)] = 0
          • Set ResourceLumber[(Integer A)] = 0
          • Set ResourceStone[(Integer A)] = 0
          • Set ResourceTin[(Integer A)] = 0
          • Set ResourceOil[(Integer A)] = 0
          • Set ResourcePower[(Integer A)] = 0
          • Set ResourceAlumium[(Integer A)] = 0
          • Set ResourceUranium[(Integer A)] = 0


Trigger:
  • Multiboard Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set ColorText = |cffFFFF00
      • Set ColorSuffix = |r
 

Moridin

Snow Leopard
Reaction score
144
The only "show" triggers I see are:

# Custom script: if ( GetLocalPlayer() == Player(0) ) then
# Multiboard - Show MultiBoardNr[1]
# Custom script: endif

And

# Custom script: if ( GetLocalPlayer() == Player(1) ) then
# Multiboard - Show MultiBoardNr[2]
# Custom script: endif

Um...maybe it's because there's no player 0 so it defaults to player 1 = player red?
Edit: in the custom script, try Player(1) and Player(2) respectively in the triggers.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
The only "show" triggers I see are:

# Custom script: if ( GetLocalPlayer() == Player(0) ) then
# Multiboard - Show MultiBoardNr[1]
# Custom script: endif

And

# Custom script: if ( GetLocalPlayer() == Player(1) ) then
# Multiboard - Show MultiBoardNr[2]
# Custom script: endif

Um...maybe it's because there's no player 0 so it defaults to player 1 = player red?
Edit: in the custom script, try Player(1) and Player(2) respectively in the triggers.

Custom Scripts simply is a single JASS line, and in JASS [ljass]Player ( 0 )[/ljass] is Player 1 (Red) ;)

And, I can't really see anything else which could cause an issue :S

Will have to look more thorough :D
 

Moridin

Snow Leopard
Reaction score
144
Custom Scripts simply is a single JASS line, and in JASS Player ( 0 ) is Player 1 (Red)

In my defense, I don't know JASS. I have no idea what could cause the problem then though. :S
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, my suggestions are try to use MultiBoardNr[1] respective MultiBoardNr[2] in all the actions, instead of (Last created multiboard), and also try changing the event to Time - Elapsed game time is 0.01 seconds (I know it doesn't seem like anything, and that your first trigger works, but let's be on the safe side ;) And 0.00 can actually bug sometimes :D).

Also, try changing the "order" of the hide/show actions, so do like this:
Trigger:
  • Multiboard - Show MultiBoardNr[1]
    • Custom script: if ( GetLocalPlayer() != Player(0) ) then
    • Multiboard - Hide MultiBoardNr[1]
    • Custom script: endif
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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