Multiboard

Stelvio

New Member
Reaction score
1
Ok guys i've f***ing had it with this multiboard , it worked before and now when I test i doesn't show up

I had made a multiboard for each player and I did this with succes now when I test it it doesn't work. Didn't change anything to the damn code.

I messed around with the event and the trigger that has the longest time
:
Trigger:
  • Time - Elapsed game time is 0.01 seconds
and
Trigger:
  • Time - Elapsed game time is 0.02 seconds

Then the trigger with 0.02 will work and the other won't

Here is my multiboard trigger
Trigger:
  • Multiboard 1
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 4 columns and 13 rows, titled Resources
      • Set Multiboard[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 - Set the text for (Last created multiboard) item in column 4, row 2 to (String(ResourceSteel[2]))
      • Multiboard - Hide (Last created multiboard)
      • Custom script: if ( GetLocalPlayer() == Player(0) ) then
      • Multiboard - Show (Last created multiboard)
      • Custom script: endif


I did this for every player , and changing the playernumber everytime
I don't understand why it won't work

please help me ty
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
try .10 as an event .01 might just be to quike after initialization
 

Stelvio

New Member
Reaction score
1
tried that allready , it doesn't work unless you put it on 1 trigger but then the other ones for the other players don't work
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
set the last created multiboard to a variable and use the variable..
 

Stelvio

New Member
Reaction score
1
already tried that didn't work

okay so i got this but it doesn't work

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


This is for player 2 (blue) . The multiboard won't show up for him either

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

kaboo

New Member
Reaction score
45
1. use 0 to affect all rows or columns - u dont need to make a loop for it
2. u dont need to make this for every player - just put this into a loop and replace all the player numbers with Integer A

like here
Trigger:
  • Melee Initialization
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Create a multiboard with 4 columns and 13 rows, titled multiboard
          • Set multiboard[(Integer A)] = (Last created multiboard)
          • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 0 to Show text and Show icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 0 to Show text and Show icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 0 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 0 to Show text and Hide icons
          • Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to (String(coal[(Integer A)]))


imo your problem could be in the custom scripts
try removing them and showing the multiboard for all players
 

Stelvio

New Member
Reaction score
1
well I need the mulitboard to show to different players cuz they each have their own resources

But I don't how changing the code would help anything because it works when I mess around with the trigger but its always for one player and not for everyone
 

kaboo

New Member
Reaction score
45
try removing them only for test purpose, if the multiboard will show then porblem is there, if wont then somewhere else
 

Stelvio

New Member
Reaction score
1
yeah it does show up when i remove the costum scripts , but I already knew that the problem was there.
 

kaboo

New Member
Reaction score
45
hm, ...


imo its impossible to show different multiboards for each player
 

Stelvio

New Member
Reaction score
1
was thinking that too but alot off ppl say it is possible and they have made tutorials about it , and doesn't dota have a multiboard for each player?
well if u have another idea how to show the resources to different players be my guest :d
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top