• 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.

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