Team Multiboards (Display a different multiboard for each team)

Rhadamant

New Member
Reaction score
1
I've been reading on this subject through many many different threads and I haven't found a definitive answer. I have created two unique multiboards and set them as multiboard variables. I've been trying to use GetLocalPlayer to display the Team 1 multiboard for Team 1 and the Team 2 multiboard for Team 2, but with minimal luck.

I've used code like this so far

Code:
call MultiboardDisplay(udg_Team1_Multiboard,GetLocalPlayer() == Player(0))
call MultiboardDisplay(udg_Team2_Multiboard,GetLocalPlayer() == Player(6))
Red is on team 1 and I want the team 1 multiboard to display for Red (Player 0)
Green is on team 2 and I want the team 2 multiboard to display for Green (Player 6)

Help!
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, what's your problem ? :S
That code should work... Please show the entire code, and also explain what's going wrong ;)
 

Rhadamant

New Member
Reaction score
1
I don't think I need to show the code to create the multiboards, that part doesn't matter. I know they are created correctly because I can setup triggers to view them one at a time. I need a script that will display the multiboards to each player when the script is run. I know it SHOULD be working, but it isn't.
 

Rhadamant

New Member
Reaction score
1
Code:
Actions
    Set TempPlayer_Multiboard = Player 1 (Red)
    Custom script:   if GetLocalPlayer() == udg_TempPlayer_Multiboard then
    Multiboard - Show Ascomanni_Multiboard
    Custom script:   endif
    Set TempPlayer_Multiboard = Player 7 (Green)
    Custom script:   if GetLocalPlayer() == udg_TempPlayer_Multiboard then
    Multiboard - Show Lochlannach_Multiboard
    Custom script:   endif

That worked for some reason and the other way didn't.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Oh, XD How can I be so blind :S
The native MultiboardDisplay only takes a multiboard, and a boolean, like:

[ljass]call MultiboardDisplay(multiboard,boolean)[/ljass]

And that last boolean there, if true displayes the multiboard, if false hides it ;)
So, that means that you'll have to do something like this in JASS, to do what you want:
JASS:
    if GetLocalPlayer() == Player(0) or GetLocalPlayer() == Player(6) then
        call MultiboardDisplay(udg_Team1_Multiboard,true)
    endif


Which basically is the same as your GUI solution ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top