Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I try to create Multiboard , but I don't know how to show Multiboard for each player. Can show example for me plz.
Create

Events


Player - Player 1 (Red) skips a cinematic sequence

Conditions

Actions


Multiboard - Create a multiboard with 5 columns and 2 rows, titled Players Info


Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Players


Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons


Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to (Name of Player 1 (Red))


Multiboard - Set the display style for (Last created multiboard) item in column 1, row 2 to Show text and Hide icons


Multiboard - Show (Last created multiboard)
Create Multiboard

Events


Time - Elapsed game time is 1.00 seconds

Conditions

Actions


Game - Display to (All players) for 18.00 seconds the text: (In Game |c00ffff00Match's score:|r |c0000ff00Jerry - Tom: |r + (|c0000ffff + ((String(gamescore[1])) + (|r + ( - + ((|c0000ffff + (String(gamescore[2]))) + |r))))))


Multiboard - Create a multiboard with 6 columns and 1 rows, titled (Scoreboard for + ((String((gamescore[1] + gamescore[2]))) + games))


-------- Width --------


Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 1.60% of the total screen width


Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 7.00% of the total screen width


Multiboard - Set the width for (Last created multiboard) item in column 3, row 1 to 1.50% of the total screen width


Multiboard - Set the width for (Last created multiboard) item in column 4, row 1 to 1.50% of the total screen width


Multiboard - Set the width for (Last created multiboard) item in column 5, row 1 to 1.60% of the total screen width


Multiboard - Set the width for (Last created multiboard) item in column 6, row 1 to 6.50% of the total screen width


-------- Text --------


Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to |c00ffff00Jerry Tea...


Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to (String(gamescore[1]))


Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to (String(gamescore[2]))


Multiboard - Set the text for (Last created multiboard) item in column 6, row 1 to |c00ff0000Tom Team|...


-------- Now set the fields for the first row, AND our player rows. --------


Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Show icons


Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Show text and Hide icons


Multiboard - Set the display style for (Last created multiboard) item in column 3, row 1 to Show text and Hide icons


Multiboard - Set the display style for (Last created multiboard) item in column 4, row 1 to Show text and Hide icons


Multiboard - Set the display style for (Last created multiboard) item in column 5, row 1 to Show text and Show icons


Multiboard - Set the display style for (Last created multiboard) item in column 6, row 1 to Show text and Hide icons


-------- Icon & Numbers --------


Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNYouDirtyRat!.blp


Multiboard - Set the icon for (Last created multiboard) item in column 5, row 1 to ReplaceableTextures\CommandButtons\BTNPuss-in-boots.blp


Multiboard - Show (Last created multiboard)
if (GetLocalPlayer() == ...) then
My Condition is same Spartipilo's reply. but that It's work? And I wonder when I uses GetLocalPlayer() is dangerous. Example Dangerous to me. PLZ!!
function Create_MultiBoard takes nothing returns nothing
local multiboard array mb
local integer i = 0
loop
exitwhen i > 11
set mb[i] = CreateMultiboard()
call MultiboardSetRowCount(mb[i], 1)
call MultiboardSetColumnCount(mb[i], 1)
call MultiboardSetTitleText(mb[i], "MUULTIBOARD : "+GetPlayerName(Player(0)))
if(GetLocalPlayer() == ????)then // This I wonder Can I use any refer target player????
call MultiboardDisplay(mb[i], true)
endif
set i = i + 1
endloop
endfunction
//===========================================================================
function InitTrig_Create_MultiBoard takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterTimerEventSingle( t, 0.00 )
call TriggerAddAction( t, function Create_MultiBoard )
set t = null
endfunction
call MultiboardDisplay(mb[i], Player(i) == GetLocalPlayer())
Inside the loop :
Jass:
call MultiboardDisplay(mb, Player(i) == GetLocalPlayer())
This way it will be false for all players excepted for Player(i), then the multiboard will be showed only for the Player(i).
why is the multiboard array local? you wont be able to access it once
scope multiboard initializer MultiBoard
globals
multiboard array mb
endglobals
private function Create_MultiBoard takes nothing returns nothing
local integer i=0
loop
exitwhen i>11
set mb[i]=CreateMultiboard()
call MultiboardSetRowCount(mb[i],1)
call MultiboardSetColumnCount(mb[i],1)
call MultiboardSetTitleText(mb[i],"MULTIBOARD : "+GetPlayerName(Player(0)))
if GetLocalPlayer()==GetTriggerPlayer()then
call MultiboardDisplay(mb[i],Player(i)==GetLocalPlayer())
endif
set i=i+1
endloop
endfunction
private function MultiBoard takes nothing returns nothing
local trigger t=CreateTrigger()
call TriggerRegisterTimerEvent(t,0.00,false)
call TriggerAddAction(t,function Create_MultiBoard)
set t = null
endfunction
endscope
if GetLocalPlayer()==GetTriggerPlayer()then
call MultiboardDisplay(mb[i],Player(i)==GetLocalPlayer())
endif
call MultiboardDisplay(mb[i],Player(i)==GetLocalPlayer())
scope multiboard initializer MultiBoard
globals
multiboard array mb
endglobals
private function Create_MultiBoard takes nothing returns nothing
local integer i=0
loop
exitwhen i>11
set mb[i]=CreateMultiboard()
call MultiboardSetRowCount(mb[i],1)
call MultiboardSetColumnCount(mb[i],1)
call MultiboardSetTitleText(mb[i],"MULTIBOARD : "+GetPlayerName(Player(0)))
call MultiboardDisplay(mb[i],Player(i)==GetLocalPlayer())
set i=i+1
endloop
endfunction
private function MultiBoard takes nothing returns nothing
local trigger t=CreateTrigger()
call TriggerRegisterTimerEvent(t,0.10,false)
call TriggerAddAction(t,function Create_MultiBoard)
set t = null
endfunction
endscope
