I don't know JASS at all, but I got some help with multiboards here at the Hive. I found a bug in a multiplayer game, and I'm not sure how to find it. The problem is that a player's multiboard either disappeared or never appeared (he doesn't remember).
The multiboard is created in a trigger that fires at .5 seconds into the game. The relevant part is here:
Can anyone see why this wouldn't create a multiboard? Is the "Set MBint = Integer A -1" correct for a game that takes between 1-10 players?
The multiboard is created in a trigger that fires at .5 seconds into the game. The relevant part is here:
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
Multiboard - Create a multiboard with 2 columns and 7 rows, titled Dashboard
-
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Lasers
-
Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to Missiles
-
Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to Engine
-
Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to Stabilizer
-
Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to Target
-
Multiboard - Set the text for (Last created multiboard) item in column 1, row 6 to Sensors
-
Multiboard - Set the text for (Last created multiboard) item in column 1, row 7 to Shields
-
For each (Integer B) from 1 to 7, do (Actions)
-
Loop - Actions
-
Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer B) to 8.00% of the total screen width
-
Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer B) to 3.00% of the total screen width
-
Multiboard - Set the color for (Last created multiboard) item in column 1, row (Integer B) to (20.00%, 80.00%, 20.00%) with 0.00% transparency
-
Multiboard - Set the color for (Last created multiboard) item in column 2, row (Integer B) to (20.00%, 80.00%, 20.00%) with 0.00% transparency
-
Multiboard - Set the display style for (Last created multiboard) item in column 2, row (Integer B) to Show text and Hide icons
-
-
-
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to ReplaceableTextures\PassiveButtons\PASBTNFlakCannons.blp
-
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNClusterRockets.blp
-
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 3 to ReplaceableTextures\CommandButtons\BTNAnimalWarTraining.blp
-
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 4 to ReplaceableTextures\CommandButtons\BTNWhirlwind.blp
-
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 5 to ReplaceableTextures\CommandButtons\BTNUndeadLoadOn.blp
-
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 6 to ReplaceableTextures\CommandButtons\BTNWindWalkOn.blp
-
Multiboard - Set the icon for (Last created multiboard) item in column 1, row 7 to ReplaceableTextures\CommandButtons\BTNNeutralManaShield.blp
-
Multiboard - Minimize (Last created multiboard)
-
Set MultiBoard[(Integer A)] = (Last created multiboard)
-
-
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
Set Show = False
-
Set MBint = ((Integer A) - 1)
-
Custom script: if GetLocalPlayer() == Player(udg_MBint) then
-
Set Show = True
-
Multiboard - Show MultiBoard[(Integer A)]
-
Custom script: endif
-
-
Can anyone see why this wouldn't create a multiboard? Is the "Set MBint = Integer A -1" correct for a game that takes between 1-10 players?