I am updating Battle for Tatooine. In it, each player has a multiboard that demonstrates their ship's statistics. The multiboard is made with these triggers:
Here is the problem, at various times during multiplayer play (but never single player) my multiboard will minimize or maximize without me doing anything. There are triggers that open or close the multiboards. Here they are a few examples:
I assume before each of these "minimize MultiBoard" commands I need a kind of custom script to detect the local player or something... I'm afraid I don't know JASS at all, so I'll need something fairly specific. I think given that there are so many different times that I call for minimizing and maximizing the MultiBoard I should just have 1 trigger that I call to minimize and 1 trigger to maximize the MultiBoard for player tempPlayer, with player number tempPlayerInteger.. Could someone write that trigger for me please?
Thank you all.
-
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 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 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
-
-
Here is the problem, at various times during multiplayer play (but never single player) my multiboard will minimize or maximize without me doing anything. There are triggers that open or close the multiboards. Here they are a few examples:
-
Multiboard ESC
-
Events
-
Player - Player 1 (Red) skips a cinematic sequence
-
Player - Player 2 (Blue) skips a cinematic sequence
-
Player - Player 3 (Teal) skips a cinematic sequence
-
Player - Player 4 (Purple) skips a cinematic sequence
-
Player - Player 5 (Yellow) skips a cinematic sequence
-
Player - Player 6 (Orange) skips a cinematic sequence
-
Player - Player 7 (Green) skips a cinematic sequence
-
Player - Player 8 (Pink) skips a cinematic sequence
-
Player - Player 9 (Gray) skips a cinematic sequence
-
Player - Player 10 (Light Blue) skips a cinematic sequence
-
-
Conditions
-
Actions
-
Set tempInteger = (Player number of (Triggering player))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(MultiBoard[tempInteger] is minimized) Equal to True
-
defaultSelection[tempInteger] Equal to Fliers[tempInteger]
-
-
Then - Actions
-
Multiboard - Maximize MultiBoard[tempInteger]
-
-
Else - Actions
-
Multiboard - Minimize MultiBoard[tempInteger]
-
-
-
-
-
Ship dies
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
Set DeadUnit = (Triggering unit)
-
...
-
Set deathInteger = (Custom value of DeadUnit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
deathInteger Less than or equal to 10
-
-
Then - Actions
-
Multiboard - Set the text for MultiBoard[deathInteger] item in column 2, row 5 to none
-
...
-
Multiboard - Minimize MultiBoard[deathInteger]
-
-
-
-
I assume before each of these "minimize MultiBoard" commands I need a kind of custom script to detect the local player or something... I'm afraid I don't know JASS at all, so I'll need something fairly specific. I think given that there are so many different times that I call for minimizing and maximizing the MultiBoard I should just have 1 trigger that I call to minimize and 1 trigger to maximize the MultiBoard for player tempPlayer, with player number tempPlayerInteger.. Could someone write that trigger for me please?
Thank you all.