This has no actions yet so ignor that part, but id like to know what i put for the second condition in the TriggerRegisterDialogEButtonEvent?
It is originally from here
I am completely new to JASS, havnt made maps in a while, saw some tutorials, read em, and am trying to learn it. Any help will be appreciated.
JASS:
function Trig_Call_Inventory_Menu_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Call_Inventory_Menu takes nothing returns nothing
set gg_trg_Call_Inventory_Menu = CreateTrigger( )
call TriggerRegisterDialogEButtonEvent( gg_trg_Call_Inventory_Menu, )
call TriggerAddAction( gg_trg_Call_Inventory_Menu, function Trig_Call_Inventory_Menu_Actions )
endfunction
It is originally from here
JASS:
function Trig_Call_Menu_Actions takes nothing returns nothing
call DialogClear( udg_ESC_Menu_Main )
call DialogSetMessageBJ( udg_ESC_Menu_Main, "Main Menu" )
call DialogAddButton( udg_ESC_Menu_Main, "Inventory", 1 )
call DialogAddButton( udg_ESC_Menu_Main, "Change Menu", 2 )
call DialogAddButton( udg_ESC_Menu_Main, "LogBook", 3 )
call DialogAddButton( udg_ESC_Menu_Main, "Return", 4 )
call DialogDisplayBJ( true, udg_ESC_Menu_Main, Player(0) )
endfunction
function InitTrig_Call_Menu takes nothing returns nothing
set gg_trg_Call_Menu = CreateTrigger( )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Call_Menu, Player(0) )
call TriggerAddAction( gg_trg_Call_Menu, function Trig_Call_Menu_Actions )
set gg_trg_Call_Menu = null
endfunction
I am completely new to JASS, havnt made maps in a while, saw some tutorials, read em, and am trying to learn it. Any help will be appreciated.
Last edited by a moderator: