Hi everyone,
i sent a full day reviewing all Local Multiboard with GetLocalPlayer
and even though it look very easy...
I couldn't do it because explanation were quite vague and a Jass Noob like me need to get lot of precision, because obvious things might not be obvious to me...
I won't ask you for the standard easy:
[Jass=Multiboard]function Trig_Show_MultiBoard_Actions takes nothing returns nothing
local integer i = 1
call TriggerSleepAction( 0.00 )
loop
exitwhen i > 12
set udg_Multiboard = CreateMultiboardBJ( ROWS, COLUMNS, "TITLE" )
call MultiboardDisplayBJ( false, udg_Multiboard )
set i = i + 1
endloop
set i = 1
loop
exitwhen i > 12
if ConvertedPlayer(i) == GetLocalPlayer() then
call MultiboardDisplayBJ( true, udg_Multiboard )
endif
set i = i + 1
endloop
endfunction
//===========================================================================
function InitTrig_Show_MultiBoard takes nothing returns nothing
set gg_trg_Show_MultiBoard = CreateTrigger( )
call TriggerAddAction( gg_trg_Show_MultiBoard, function Trig_Show_MultiBoard_Actions )
endfunction[/code]
wich i couldn't make to work anyway....
but i will ask your Help (to All Jass Master) for some very specific Triggers:
I would like to create let's say 3 Multiboards for each players, each 3 multiboards local to 1 player...
Let me explain:
Player 1 can swap between Multiboard_Stats(1) , Multiboard_Game(1) and Multiboard_Score(1) by clicking "ESC" key...
Player 2 same but Multiboard(2) , Player 3 Multiboard(3) , etc....
So i need to create 12x3 = 36 multiboards
then:
TriggerA (normal GUI trigger)
game elapsed time 0.10 create all the multiboards and hide all Multiboard for all players
TriggerB (JASS local Trigger)
game elapsed time 1.00 pick everyplayer and show multiboard_Stats(x) for local player(x)
set integer BoardPlayer(x) = 1
TriggerC (JASS local Trigger)
player x skip cinematic
if BoardPlayer(x) = 1
then hide multiboard_Stats(x) show multiboard_Game(x) and set BoardPlayer(x) = 2
else if BoardPlayer(x) = 2
then hide multiboard_Game(x) show multiboard_Score(x) and set BoardPlayer(x) = 3
else hide multiboard_Score(x) and show multiboard_Stats(x) and set BoardPlayer(x) = 1
Could someone Help me do the two JASS trigger using local to show and hide the correct Multiboard for correct local players...
if you could post a demo map doesn't matter if the multiboard have only 2 row and column and no value,
i just need the map as an example on how to do the JASS part.
Thanks for your time reading...
and Thanks in Advance for your Help ^^
i sent a full day reviewing all Local Multiboard with GetLocalPlayer
and even though it look very easy...
I couldn't do it because explanation were quite vague and a Jass Noob like me need to get lot of precision, because obvious things might not be obvious to me...
I won't ask you for the standard easy:
[Jass=Multiboard]function Trig_Show_MultiBoard_Actions takes nothing returns nothing
local integer i = 1
call TriggerSleepAction( 0.00 )
loop
exitwhen i > 12
set udg_Multiboard = CreateMultiboardBJ( ROWS, COLUMNS, "TITLE" )
call MultiboardDisplayBJ( false, udg_Multiboard )
set i = i + 1
endloop
set i = 1
loop
exitwhen i > 12
if ConvertedPlayer(i) == GetLocalPlayer() then
call MultiboardDisplayBJ( true, udg_Multiboard )
endif
set i = i + 1
endloop
endfunction
//===========================================================================
function InitTrig_Show_MultiBoard takes nothing returns nothing
set gg_trg_Show_MultiBoard = CreateTrigger( )
call TriggerAddAction( gg_trg_Show_MultiBoard, function Trig_Show_MultiBoard_Actions )
endfunction[/code]
wich i couldn't make to work anyway....
but i will ask your Help (to All Jass Master) for some very specific Triggers:
I would like to create let's say 3 Multiboards for each players, each 3 multiboards local to 1 player...
Let me explain:
Player 1 can swap between Multiboard_Stats(1) , Multiboard_Game(1) and Multiboard_Score(1) by clicking "ESC" key...
Player 2 same but Multiboard(2) , Player 3 Multiboard(3) , etc....
So i need to create 12x3 = 36 multiboards
then:
TriggerA (normal GUI trigger)
game elapsed time 0.10 create all the multiboards and hide all Multiboard for all players
TriggerB (JASS local Trigger)
game elapsed time 1.00 pick everyplayer and show multiboard_Stats(x) for local player(x)
set integer BoardPlayer(x) = 1
TriggerC (JASS local Trigger)
player x skip cinematic
if BoardPlayer(x) = 1
then hide multiboard_Stats(x) show multiboard_Game(x) and set BoardPlayer(x) = 2
else if BoardPlayer(x) = 2
then hide multiboard_Game(x) show multiboard_Score(x) and set BoardPlayer(x) = 3
else hide multiboard_Score(x) and show multiboard_Stats(x) and set BoardPlayer(x) = 1
Could someone Help me do the two JASS trigger using local to show and hide the correct Multiboard for correct local players...
if you could post a demo map doesn't matter if the multiboard have only 2 row and column and no value,
i just need the map as an example on how to do the JASS part.
Thanks for your time reading...
and Thanks in Advance for your Help ^^