- Joined
- Nov 26, 2007
- Messages
- 1,964
I got a little bug in my multiboard sys..
I know playermarine is set to the unit because I've used it in other triggers which work. Its set to player number owner. The multiboard appears, but all the stats (Health, "Battery" or mana) remain 0.0
Why is it not workingz?
-
Multiboard
-
Events
- Time - Elapsed game time is 6.00 seconds
- Conditions
-
Actions
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
- Multiboard - Create a multiboard with 2 columns and 6 rows, titled |c00FF8000Status|r
- Set Multiboard[(Integer A)] = (Last created multiboard)
- Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to |c00FEBA0EHealth:|r
- Multiboard - Set the text for Multiboard[(Integer A)] item in column 2, row 1 to (String((Percentage life of Playermarine[(Integer A)])))
- Multiboard - Set the text for Multiboard[(Integer A)] item in column 2, row 2 to (String((Percentage mana of Playermarine[(Integer A)])))
- Multiboard - Set the text for Multiboard[(Integer A)] item in column 2, row 4 to (String((Unit-type of Playermarine[(Integer A)])))
- Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to |c00FEBA0EBattery:|...
- Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNSkillz.tga
- Multiboard - Set the icon for (Last created multiboard) item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNLament.blp
- Multiboard - Set the icon for (Last created multiboard) item in column 1, row 3 to ReplaceableTextures\CommandButtons\BTNAuraOfDarkness.blp
- Multiboard - Set the icon for (Last created multiboard) item in column 2, row 1 to UI\MiniMap\MinimapIcon\MinimapIconStartLoc.blp
- Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to UI\MiniMap\MinimapIcon\MinimapIconStartLoc.blp
- Multiboard - Set the icon for (Last created multiboard) item in column 2, row 3 to UI\MiniMap\MinimapIcon\MinimapIconStartLoc.blp
- Multiboard - Set the icon for (Last created multiboard) item in column 2, row 4 to UI\MiniMap\MinimapIcon\MinimapIconStartLoc.blp
- Multiboard - Set the icon for (Last created multiboard) item in column 1, row 4 to UI\MiniMap\MinimapIcon\MinimapIconStartLoc.blp
- Multiboard - Set the icon for (Last created multiboard) item in column 1, row 5 to UI\MiniMap\MinimapIcon\MinimapIconStartLoc.blp
- Multiboard - Set the icon for (Last created multiboard) item in column 1, row 6 to UI\MiniMap\MinimapIcon\MinimapIconStartLoc.blp
- Multiboard - Set the icon for (Last created multiboard) item in column 2, row 6 to UI\MiniMap\MinimapIcon\MinimapIconStartLoc.blp
- Multiboard - Set the icon for (Last created multiboard) item in column 2, row 5 to UI\MiniMap\MinimapIcon\MinimapIconStartLoc.blp
- Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to |c00FEBA0EFear:|r
- Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to |c00FEBA0EWeapon:|r
- Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String((Percentage life of Playermarine[(Integer A)])))
- Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String((Percentage mana of Playermarine[(Integer A)])))
- Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (String((Unit-type of Playermarine[(Integer A)])))
- Multiboard - Set the width for (Last created multiboard) item in column 0, row 0 to 10.00% of the total screen width
- Multiboard - Minimize (Last created multiboard)
- Multiboard - Maximize (Last created multiboard)
- Custom script: if( GetLocalPlayer() == ConvertedPlayer(bj_forLoopAIndex) ) then
- Multiboard - Show Multiboard[(Integer A)]
- Custom script: endif
- Wait 0.20 seconds
- Trigger - Turn on Updating Multiboard <gen>
- Trigger - Destroy (This trigger)
-
Loop - Actions
-
For each (Integer A) from 1 to 10, do (Actions)
-
Events
-
Updating Multiboard
-
Events
- Time - Every 0.30 seconds of game time
- Conditions
-
Actions
-
For each (Integer A) from 1 to 10, do (Actions)
- Loop - Actions
- -------- Player 1 --------
- Multiboard - Set the text for Multiboard[(Integer A)] item in column 2, row 1 to (String((Percentage life of Playermarine[(Integer A)])))
- Multiboard - Set the text for Multiboard[(Integer A)] item in column 2, row 2 to (String((Percentage mana of Playermarine[(Integer A)])))
-
For each (Integer A) from 1 to 10, do (Actions)
-
Events
I know playermarine is set to the unit because I've used it in other triggers which work. Its set to player number owner. The multiboard appears, but all the stats (Health, "Battery" or mana) remain 0.0
Why is it not workingz?