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!
Can any1 tell me if there is a way to show a multiboard to one person only. I need it to display hero stats such as damage, resistances, chance to hit/crit but for one hero only to its owner.
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
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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.