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

Status
Not open for further replies.
Level 3
Joined
Jan 11, 2008
Messages
36
It is very easy, but you must use JASS cript:

  • Custom script: if GetLocalPlayer() == Player(0)
  • -------- 0 is red player, 1 is blue, ...--------
  • Multiboard - Create multiboard
  • Multiboard - here create and manage your multiboard
  • Custom script: endif
 
Last edited:
Level 23
Joined
Nov 29, 2006
Messages
2,482
Borax was at the right trail but...

If you want a multiboard which is going to have values changing for different players you have to setup a multiboard array.

So basically you create a multiboard for each player and hides them all.

At the end of the trigger use a loop to show the right multiboard to the right player.
(Eg I assume your arrays would start on 1, since in Gui Player 1 is on 1, but in jass its 0)
  • MultiboardSetup
    • Events
    • Conditions
    • Actions
      • -------- Fix a mb array etc, and then place the following at the end of the trigger --------
      • -------- Dont forget to Hide all the multiboards first --------
      • -------- im usig For each desired player from 1 to 12 --------
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Custom script: if GetLocalPlayer() == Player(bj_forLoopAIndex - 1) then
          • Multiboard - Show YourArrayMultiboard[integer A]
          • Custom script: endif
 
Level 3
Joined
Jan 11, 2008
Messages
36
This custom script shows it only for one player.

Second line of this script will be executed only for player of typed number, so it shows multiboard only for this player. You must also work with varible of type multiboard, then you can manage more than one multiboard.

  • Set Your_variable = (Last created Multiboard)
  • ...
  • Custom script: if GetLocalPlayer() == Player(0)
    • Multiboard - Show Your_variable
  • Custom script: endif
OR, if you dont understand me, look here
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
Borax, it is right, but if he would like a system where the multiboard should only change its values for a specific player, not for all, he would require a multboard array. Otherwise, even though he only displays them all separately, the values would be changed for all the players.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Run the display action out of sync from the other players with the native GetLocalPlayer(). GetLocalPlayer returns the PC that runs the native (in multiplayer every human player gets their player from this native on their PC).

Simply check if the player returned from that native is the player you want it to show to and if so then show it. It would only show on the player you want because all other players would have the condition statement return false as they are not that player.

Be warned that any native that influences random number generation, creates net traffic or changes non graphical stats will result in a game split (OOS) if used with GetLocalPlayer() in a bad way. Purly graphic alterations can be used with out having to worry about any of that.
 
Status
Not open for further replies.
Top