Local Multiboard Help

Azrooh

New Member
Reaction score
5
Solved

I needed to hide the multiboard instead of showing it.






I'm trying to get a multiboard to show for only one player, but I can't seem to figure it out. It shows it for all players. My trigger:

Trigger:
  • Create MB Red
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 2 columns and 2 rows, titled God Information
      • Set ResourceBoard[1] = (Last created multiboard)
      • Multiboard - Set the text for ResourceBoard[1] item in column 1, row 1 to Alignment:
      • Multiboard - Set the text for ResourceBoard[1] item in column 2, row 1 to AlignmentString[1]
      • Multiboard - Set the text for ResourceBoard[1] item in column 1, row 2 to Power:
      • Multiboard - Set the text for ResourceBoard[1] item in column 2, row 2 to (String(GodPower[1]))
      • Multiboard - Set the width for ResourceBoard[1] item in column 1, row 1 to 5.00% of the total screen width
      • Multiboard - Set the width for ResourceBoard[1] item in column 1, row 2 to 5.00% of the total screen width
      • Multiboard - Set the width for ResourceBoard[1] item in column 2, row 1 to 5.00% of the total screen width
      • Multiboard - Set the width for ResourceBoard[1] item in column 2, row 2 to 5.00% of the total screen width
      • Multiboard - Set the display style for ResourceBoard[1] item in column 1, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for ResourceBoard[1] item in column 1, row 2 to Show text and Hide icons
      • Multiboard - Set the display style for ResourceBoard[1] item in column 2, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for ResourceBoard[1] item in column 2, row 2 to Show text and Hide icons
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Player 1 (Red) Equal to (Local player)
        • Then - Actions
          • Multiboard - Show ResourceBoard[1]
        • Else - Actions
 

Carnerox

The one and only.
Reaction score
84
remove your if/then/else and replace it with.

Trigger:
  • Actions
    • Custom script: if GetLocalPlayer() == Player(0) then
    • Custom script: call MultiboardDisplay (udg_ResourceBoard[1], true)
    • Custom script: endif
 

Azrooh

New Member
Reaction score
5
I'm using UMSWE, which includes a GUI function for local player. I also know it works, because this trigger works:\
E: I tried the JASS if/then/else, and it didn't work either. Not sure what's going on here.
Trigger:
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Set name of Neutral Passive to Zombies
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Test Trooper)) and do (Actions)
        • Loop - Actions
          • Set MainUnit[(Player number of (Owner of (Picked unit)))] = (Picked unit)
          • Hero - Create Shotgun and give it to (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Picked unit)) Equal to (Local player)
            • Then - Actions
              • Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
            • Else - Actions
      • Trigger - Turn on Limiting Guns <gen>
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility from (Center of (Playable map area)) to a radius of 99999.00
 

Carnerox

The one and only.
Reaction score
84
Try what I did, also to be clear.. Did you test with players besides player 1..
 
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