Hello people ![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I started something and i got stuck :S
thought you might can help me..
Ok so here we go,
I want to have a dialog shown to everyone who is playing at the beggining of the game (time elapse 0.5 secs) 1 dialog shows 2 options and after that if some is picking the first another dialog and if the another then a diffrent dialog.
Now i started something and i noticed i used local veriables when i saw i need to activate a new trigger (When button clicked - if there is an other way..) and i thought about using globals but will it be good since there are like 12 players and alot of total buttons and dialogs..
Thanks in advance![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
thats what i did but now i don't know what to do to tell when clicked on 1st button or 2nd..
I started something and i got stuck :S
thought you might can help me..
Ok so here we go,
I want to have a dialog shown to everyone who is playing at the beggining of the game (time elapse 0.5 secs) 1 dialog shows 2 options and after that if some is picking the first another dialog and if the another then a diffrent dialog.
Now i started something and i noticed i used local veriables when i saw i need to activate a new trigger (When button clicked - if there is an other way..) and i thought about using globals but will it be good since there are like 12 players and alot of total buttons and dialogs..
Thanks in advance
JASS:
function Trig_Start_Actions takes nothing returns nothing
local integer i = 0
local dialog d1 = DialogCreate()
call DialogAddButton(d1,"charcter 1",1)
call DialogAddButton(d1,"charcter 2",2)
call DialogSetMessage(d1,"Select your charcter type:")
loop
exitwhen i > 11
if ( GetPlayerSlotState(Player(i)) == PLAYER_SLOT_STATE_PLAYING ) then
call DialogDisplay(Player(i),d1,true )
endif
set i = i+1
endloop
endfunction
//===========================================================================
function InitTrig_Start takes nothing returns nothing
set gg_trg_Start = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Start, 0.50 )
call TriggerAddAction( gg_trg_Start, function Trig_Start_Actions )
endfunction
thats what i did but now i don't know what to do to tell when clicked on 1st button or 2nd..