| I am trying to get a multiboard up and running. I got most of the things working except one big pain in the ass thing with icons and also one other minor detail.
First off, here are the relevant codes:
Create:
Trigger: Create Multiboard
 Events
  Time - Elapsed game time is 1.00 seconds
 Conditions
 Actions
  Set Player_Colors[0] = |c00ff0000
  Set Player_Colors[1] = |c000000ff
  Set Player_Colors[2] = |c0000ffff
  Set Player_Colors[3] = |c00800080
  Set Player_Colors[4] = |c00ffff00
  Set Player_Colors[5] = |c00ff8000
  Set Player_Colors[6] = |c0000ff00
  Set Player_Colors[7] = |c00ff00ff
  Multiboard - Create a multiboard with 3 columns and 12 rows, titled Element TD
  For each (Integer A) from 1 to 12, do (Actions)
   Loop - Actions
    For each (Integer B) from 1 to 3, do (Actions)
     Loop - Actions
      Multiboard - Set the width for (Last created multiboard) item in column (Integer B), row (Integer A) to 0.00% of the total screen width
      Multiboard - Set the display style for (Last created multiboard) item in column (Integer B), row (Integer A) to Show text and Hide icons
  Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Current Level:
  Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to Next Level:
  For each (Integer A) from 1 to 2, do (Actions)
   Loop - Actions
    For each (Integer B) from 2 to 3, do (Actions)
     Loop - Actions
      Multiboard - Set the width for (Last created multiboard) item in column (Integer B), row (Integer A) to 1.25% of the total screen width
      Multiboard - Set the display style for (Last created multiboard) item in column (Integer B), row (Integer A) to Show text and Show icons
  Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to ReplaceableTextures\CommandButtons\BTNHumanArmorUpOne.blp
  Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String(Level))
  Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to ReplaceableTextures\CommandButtons\BTNDeathPact.blp
  Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String((Level + 1)))
  Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to Interest in:
  Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to 0:15
  For each (Integer A) from 1 to 12, do (Actions)
   Loop - Actions
    Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 10.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 text for (Last created multiboard) item in column 1, row 4 to Player Name
  Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to Lives
  Multiboard - Set the text for (Last created multiboard) item in column 3, row 4 to Net Worth
  Multiboard - Set the width for (Last created multiboard) item in column 3, row 4 to 10.00% of the total screen width
  For each (Integer A) from 5 to 12, do (Actions)
   Loop - Actions
    Multiboard - Set the text for (Last created multiboard) item in column 1, row (Integer A) to ((Player_Colors[((Integer A) - 5)] + Player ) + ((String(((Integer A) - 4))) + |r))
    Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to (String(Player_Lives[((Integer A) - 5)]))
    Multiboard - Set the text for (Last created multiboard) item in column 3, row (Integer A) to (String(Networth[((Integer A) - 4)]))
    Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 10.00% of the total screen width
  For each (Integer A) from 1 to 3, do (Actions)
   Loop - Actions
    Multiboard - Set the color for (Last created multiboard) item in column 1, row (Integer A) to (100.00%, 80.00%, 0.00%) with 0.00% transparency
  Multiboard - Set the color for (Last created multiboard) item in column 0, row 4 to (100.00%, 80.00%, 0.00%) with 0.00% transparency
  Multiboard - Show (Last created multiboard)
Update:
Trigger: Update Multiboard
 Events
  Time - Every 1.00 seconds of game time
 Conditions
 Actions
  Set Player_Colors[0] = |c00ff0000
  Set Player_Colors[1] = |c000000ff
  Set Player_Colors[2] = |c0000ffff
  Set Player_Colors[3] = |c00800080
  Set Player_Colors[4] = |c00ffff00
  Set Player_Colors[5] = |c00ff8000
  Set Player_Colors[6] = |c0000ff00
  Set Player_Colors[7] = |c00ff00ff
  For each (Integer A) from 1 to 12, do (Actions)
   Loop - Actions
    For each (Integer B) from 1 to 3, do (Actions)
     Loop - Actions
      Multiboard - Set the width for (Last created multiboard) item in column (Integer B), row (Integer A) to 0.00% of the total screen width
      Multiboard - Set the display style for (Last created multiboard) item in column (Integer B), row (Integer A) to Show text and Hide icons
  Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Current Level:
  Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to Next Level:
  For each (Integer A) from 1 to 2, do (Actions)
   Loop - Actions
    For each (Integer B) from 2 to 3, do (Actions)
     Loop - Actions
      Multiboard - Set the width for (Last created multiboard) item in column (Integer B), row (Integer A) to 1.25% of the total screen width
      Multiboard - Set the display style for (Last created multiboard) item in column (Integer B), row (Integer A) to Show text and Show icons
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Characteristic[(Level - 1)] Equal to 1
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 3, row 1 to ReplaceableTextures\CommandButtons\BTNEngineeringUpgrade.blp
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Characteristic[(Level - 1)] Equal to 2
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 3, row 1 to ReplaceableTextures\CommandButtons\BTNSkeletonWarrior.blp
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Characteristic[(Level - 1)] Equal to 3
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 3, row 1 to ReplaceableTextures\CommandButtons\BTNHeal.blp
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Characteristic[(Level - 1)] Equal to 4
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 3, row 1 to ReplaceableTextures\CommandButtons\BTNBootsOfSpeed.blp
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[(Level - 1)] Equal to 0
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to ReplaceableTextures\CommandButtons\BTNHumanArmorUpOne.blp
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[(Level - 1)] Equal to 1
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to war3mapImported\water_armor.TGA
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[(Level - 1)] Equal to 2
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to war3mapImported\fire_armor.TGA
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[(Level - 1)] Equal to 3
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to war3mapImported\nature_armor.TGA
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[(Level - 1)] Equal to 4
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to war3mapImported\earth_armor.TGA
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[(Level - 1)] Equal to 5
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to war3mapImported\light_armor.TGA
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[(Level - 1)] Equal to 6
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to war3mapImported\darkness_armor.TGA
   Else - Actions
  Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String(Level))
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Characteristic[Level] Equal to 1
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 3, row 2 to ReplaceableTextures\CommandButtons\BTNEngineeringUpgrade.blp
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Characteristic[Level] Equal to 2
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 3, row 2 to ReplaceableTextures\CommandButtons\BTNSkeletonWarrior.blp
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Characteristic[Level] Equal to 3
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 3, row 2 to ReplaceableTextures\CommandButtons\BTNHeal.blp
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Characteristic[Level] Equal to 4
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 3, row 2 to ReplaceableTextures\CommandButtons\BTNBootsOfSpeed.blp
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[Level] Equal to 0
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to ReplaceableTextures\CommandButtons\BTNHumanArmorUpOne.blp
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[Level] Equal to 1
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to war3mapImported\water_armor.TGA
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[Level] Equal to 2
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to war3mapImported\fire_armor.TGA
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[Level] Equal to 3
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to war3mapImported\nature_armor.TGA
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[Level] Equal to 4
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to war3mapImported\earth_armor.TGA
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[Level] Equal to 5
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to war3mapImported\light_armor.TGA
   Else - Actions
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    Multiboard_Element[Level] Equal to 6
   Then - Actions
    Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to war3mapImported\darkness_armor.TGA
   Else - Actions
  Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String((Level + 1)))
  Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to Interest in:
  Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (String(InterestInteger))
  For each (Integer A) from 1 to 12, do (Actions)
   Loop - Actions
    Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 10.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 text for (Last created multiboard) item in column 1, row 4 to Player Name
  Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to Lives
  Multiboard - Set the text for (Last created multiboard) item in column 3, row 4 to Net Worth
  Multiboard - Set the width for (Last created multiboard) item in column 3, row 4 to 10.00% of the total screen width
  For each (Integer A) from 5 to 12, do (Actions)
   Loop - Actions
    Multiboard - Set the text for (Last created multiboard) item in column 1, row (Integer A) to ((Player_Colors[((Integer A) - 5)] + Player ) + ((String(((Integer A) - 4))) + |r))
    Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer A) to (String(Player_Lives[((Integer A) - 5)]))
    Multiboard - Set the text for (Last created multiboard) item in column 3, row (Integer A) to (String(Networth[((Integer A) - 4)]))
    Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 10.00% of the total screen width
  For each (Integer A) from 1 to 3, do (Actions)
   Loop - Actions
    Multiboard - Set the color for (Last created multiboard) item in column 1, row (Integer A) to (100.00%, 80.00%, 0.00%) with 0.00% transparency
  Multiboard - Set the color for (Last created multiboard) item in column 0, row 4 to (100.00%, 80.00%, 0.00%) with 0.00% transparency
Determine Icons:
Ok, now the problems:
First, none of the icons are being properly set at all. They do not correspond to the way I determined them in the trigger whatsoever.
Second, the last column of the multiboard (column 3) is really narrow. I need it to be longer.
All help will be appreciated. |