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!
the problem is that the only multiboard diplayed is to player 2 i think i have only tested it with 2 players but anyway player 1 gets no multiboard and yes both player 1 and 2 were in game and human, can someone please tell me whats wrong. Thanks.
Multiboard - Create a multiboard with 2 columns and 4 rows, titled Hero Picking
The problem is with this one.
- Why?
- Here comes ugly Jass.
JASS:
function CreateMultiboardBJ takes integer cols, integer rows, string title returns multiboard
set bj_lastCreatedMultiboard = CreateMultiboard()
call MultiboardSetRowCount(bj_lastCreatedMultiboard, rows)
call MultiboardSetColumnCount(bj_lastCreatedMultiboard, cols)
call MultiboardSetTitleText(bj_lastCreatedMultiboard, title)
call MultiboardDisplay(bj_lastCreatedMultiboard, true)
return bj_lastCreatedMultiboard
endfunction
- Ok, but where is the problem?
- In this BJ everything is nice and fine except... this: call MultiboardDisplay(bj_lastCreatedMultiboard, true)
- And this why causes me problems?
- Let me explain. You have a loop for two player, on the first time it creates the board, also displays it, then hides for all, in the end displays for Player Red. Everything is fine, Red has multiboard, Blue doesn't.
Now comes the second period for Blue player. Creates a multiboard, displaying for player Blue, and ALSO displays for Red, hides it for both, and displays for Blue. Now Blue has board, Red doesn't. If you went for 3 players Red nor Blue would have a table.
- Ok ok I have read your badly written shit, can you give a solution??
- Yes, there is several solution. But the easiest:
Replace this line of code:
Multiboard - Create a multiboard with 2 columns and 4 rows, titled Hero Picking
With these:
Custom script: set bj_lastCreatedMultiboard = CreateMultiboard( ) // Or use "set udg_Picking_MultiBoard[udg_Player_Number] = CreateMultiboard( )" and you won't need the next line :>
Set Picking_MultiBoard[Player_Number] = (Last created multiboard)
Multiboard - Change the number of rows for Picking_MultiBoard[Player_Number] to 4
Multiboard - Change the number of columns for Picking_MultiBoard[Player_Number] to 2
Multiboard - Change the title of Picking_MultiBoard[Player_Number] to Hero Picking
Ok this should solve the problem. If not then I am an asshole who haven't checked it out.
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.