- Joined
- Jun 24, 2012
- Messages
- 112
This trigger is supposed to create a multiboard for every player but only show 1 specific multiboard to a specific player. For some reason, only Player 1 gets a multiboard. I've tried it many different ways, but haven't managed to make it work.
-
MB GP Create 1
- Events
- Conditions
-
Actions
-
Player Group - Pick every player in DL_Force and do (Actions)
-
Loop - Actions
- Multiboard - Create a multiboard with 2 columns and ((Number of players in DL_Force) + 1) rows, titled (R) The True Death ...
- Set GP_Board1[(Player number of (Picked player))] = (Last created multiboard)
- Multiboard - Maximize (Last created multiboard)
- Multiboard - Hide (Last created multiboard)
- Multiboard - Set the display style for (Last created multiboard) item in column 1, row 0 to Hide text and Hide 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 width for (Last created multiboard) item in column 1, row 0 to 1.50% of the total screen width
- Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 8.50% of the total screen width
- Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (|cffa8a8a8Kills:|r + ((String(GP_Kills[(Player number of (Picked player))])) + /10))
- Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to |cffa8a8a8Players l...
- Set GP_Integer[0] = 2
- Hashtable - Save True as (520 + (Player number of (Picked player))) of (Player number of (Picked player)) in (Last created hashtable)
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Player((Integer A))) is an enemy of (Picked player)) Equal to True
- ((Player((Integer A))) is in DL_Force) Equal to True
-
Then - Actions
- Set GP_Integer[0] = (GP_Integer[0] + 1)
- Hashtable - Save GP_Integer[0] as (500 + (Integer A)) of (Player number of (Picked player)) in (Last created hashtable)
- Hashtable - Save False as (520 + (Integer A)) of (Player number of (Picked player)) in (Last created hashtable)
- Multiboard - Set the icon for (Last created multiboard) item in column 1, row GP_Integer[0] to ReplaceableTextures\CommandButtons\BTNSkeletonMage.blp
- Multiboard - Set the text for (Last created multiboard) item in column 2, row GP_Integer[0] to (FN_PlayerColor[(Integer A)] + ((Name of (Player((Integer A)))) + |r))
- Multiboard - Set the display style for (Last created multiboard) item in column 1, row GP_Integer[0] to Hide text and Show icons
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: if GetLocalPlayer() == GetEnumPlayer() then
- Multiboard - Show GP_Board1[(Player number of (Picked player))]
- Custom script: endif
-
Loop - Actions
-
Player Group - Pick every player in DL_Force and do (Actions)