• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Multiboards per player AGAIN

Status
Not open for further replies.
Level 4
Joined
Oct 4, 2013
Messages
67
Multiboards again, i've been searching on how to create multiboard per players and i've ended up to this ,however; the problem which is it doesn't shows anything. Anyone can shed light on it?

  • Multiboard
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Set MB_NAME[(Integer A)] = (Name of (Player((Integer A))))
              • Set MB_Width = 5.00
              • Custom script: set udg_MB[GetForLoopIndexA()] = CreateMultiboard( )
              • Set MB[(Integer A)] = (Last created multiboard)
              • Multiboard - Change the number of rows for MB[(Integer A)] to 9
              • Multiboard - Change the number of columns for MB[(Integer A)] to 3
              • Multiboard - Change the title of MB[(Integer A)] to (Status: + ((MB_NAME[(Integer A)] + ) + (((String(MB_LEVEL[(Integer A)])) + ) + ((MB_FORM[(Integer A)] + ) + MB_DOINGWHUT[(Integer A)]))))
              • For each (Integer C) from 1 to 9, do (Actions)
                • Loop - Actions
                  • For each (Integer D) from 1 to 3, do (Actions)
                    • Loop - Actions
                      • Multiboard - Set the width for MB[(Integer A)] item in column D, row C to MB_Width% of the total screen width
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row 1 to Time:
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row 2 to Hunger:
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row 3 to Stamina:
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row 4 to Quest Fin:
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row 5 to Current Qst:
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row 6 to Kills:
              • Multiboard - Set the text for MB[(Integer A)] item in column 1, row 7 to Awards:
              • Multiboard - Hide MB[(Integer A)]
              • Custom script: if ( GetLocalPlayer() == Player(GetForLoopIndexA() - 1)) then
              • Multiboard - Show MB[(Integer A)]
              • Custom script: endif
              • Custom script: call MultiboardDisplay (udg_MB[GetForLoopIndexA()], true)
              • Custom script: call MultiboardMinimize(udg_MB[GetForLoopIndexA()],true)
            • Else - Actions
 
Level 9
Joined
Dec 12, 2007
Messages
489
Those integers were variable loop indexes so there's no problem with that. well ill try removing the custom script.

Edit 1: Nope not working

I mean, is the Integer A the default preset index for GUI? as you say those C and D are variable loop indexes, just want to clarify that this integer A is not a variable index too.

because if you say it doesn't show anything, there are two possibilities,
1. the multiboard is not created
2. the multiboard is not shown to the specific players.

how about placing some debug message around, mainly after the multiboard creation and inside the if GetLocalPlayer()[icode=jass] block, try show what is GetForLoopIndexA() during the loop. if you see the message inside the GetLocalPlayer() block, we know at least the multiboard is shown. try using [icode=jass]bj_forLoopAIndex rather than the function GetForLoopIndexA()
 
Status
Not open for further replies.
Top