• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Player 1 MultiBoard Switches

Status
Not open for further replies.
Level 6
Joined
Sep 11, 2006
Messages
172
Hello thar! :grin:

I decided to post this thread as I am having some difficulty getting local player multi boards working. I currently have two triggers set up on my map that organize and arrange two player's boards (1 and 2). Player 1's board pops up after the first second of the game and disappears to be replaced by player two's. I have tested this online with my brother, but am not sure what is causing the problem. Both boards have their own variable array assigned and the "get local player" custom script is set to 0 for player 1 and 1 for player 2. I will post the triggers here. :wink:

  • Set Multi
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
      • (Player 1 (Red) slot status) Equal to Is playing
    • Actions
      • Multiboard - Create a multiboard with 5 columns and 2 rows, titled (PlayerColors[1] + Stats)
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 2 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 2 to 8.00% of the total screen width
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to PlayerColors[1]
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to 0
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 1 to ReplaceableTextures\CommandButtons\BTNFireBolt.blp
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to 0
      • Multiboard - Set the icon for (Last created multiboard) item in column 5, row 1 to ReplaceableTextures\PassiveButtons\PASBTNHumanArtilleryUpOne.blp
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Body Temp
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Ammo
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 1 to Hide text and Show icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 4, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 5, row 1 to Hide text and Show icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 2 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 2 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 2 to Hide text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 4, row 2 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 5, row 2 to Hide text and Hide icons
      • Multiboard - Minimize (Last created multiboard)
      • Multiboard - Maximize (Last created multiboard)
      • Multiboard - Hide (Last created multiboard)
      • Custom script: if ( GetLocalPlayer() == Player(0) ) then
      • Multiboard - Show (Last created multiboard)
      • Set Multi[1] = (Last created multiboard)
      • Custom script: endif
 
Level 6
Joined
Sep 11, 2006
Messages
172
  • Set Multi Copy
    • Events
      • Time - Elapsed game time is 2.00 seconds
    • Conditions
      • (Player 2 (Blue) slot status) Equal to Is playing
    • Actions
      • Multiboard - Create a multiboard with 5 columns and 2 rows, titled (PlayerColors[2] + Stats)
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 1 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 1, row 2 to 10.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 2, row 2 to 8.00% of the total screen width
      • Multiboard - Set the width for (Last created multiboard) item in column 4, row 2 to 8.00% of the total screen width
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to PlayerColors[2]
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to 0
      • Multiboard - Set the icon for (Last created multiboard) item in column 3, row 1 to ReplaceableTextures\CommandButtons\BTNFireBolt.blp
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to 0
      • Multiboard - Set the icon for (Last created multiboard) item in column 5, row 1 to ReplaceableTextures\PassiveButtons\PASBTNHumanArtilleryUpOne.blp
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Body Temp
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Ammo
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 1 to Hide text and Show icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 4, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 5, row 1 to Hide text and Show icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 2 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 2, row 2 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 3, row 2 to Hide text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 4, row 2 to Show text and Hide icons
      • Multiboard - Set the display style for (Last created multiboard) item in column 5, row 2 to Hide text and Hide icons
      • Multiboard - Minimize (Last created multiboard)
      • Multiboard - Maximize (Last created multiboard)
      • Multiboard - Hide (Last created multiboard)
      • Custom script: if ( GetLocalPlayer() == Player(1) ) then
      • Multiboard - Show (Last created multiboard)
      • Set Multi[2] = (Last created multiboard)
      • Custom script: endif
      • Custom script: if ( GetLocalPlayer() == Player(0) ) then
      • Multiboard - Hide Multi[2]
      • Custom script: endif[TRIGGER]
 
Status
Not open for further replies.
Top