• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Multiboard with different messages for the players

Status
Not open for further replies.
The most logical and user-friendly way is to create an array of multiboards. This is how I would do it. Create a multiboard array named PlayerBoards:
  • Sample
    • Events
      • Time - Time elapsed is 0.00 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Create a multiboard with 3 columns and 2 rows, titled Fun
          • Set PlayerBoards[(Integer A)] = (Last created multiboard)
          • Multiboard - Hide (Last created multiboard)
          • Custom script: if GetLocalPlayer() == Player(bj_forLoopAIndex - 1) then
          • Multiboard - Show (Last created multiboard)
          • Custom script: endif
That way, if you ever want to edit the multiboard for one player you can just directly do:
  • Multiboard - Set the text for PlayerBoards[Player number of (Player 1 (Red))] item in column...
You don't have to deal with GetLocalPlayer() at all. You are just modifying the multiboard that is displayed for that particular player, which is 100% sync friendly.

Now, technically you can use just one multiboard and edit the text locally for each player, but that is just an unnecessary hassle. Just use the method I've described above and you should be fine. Note that the GUI functions might not be exact since I don't have WE on this comp.
 
Status
Not open for further replies.
Top