Hey, is it possible to create a dialog button for choosing difficulty or what not without using gui/global variables. I have tried creating a dialog using locals but it didn't work. What functions should i be using to acomplish this--all the turorials ive looked for are only gui. Here is what i have come up with so far, but it doesn't work
JASS:
function difficultydiag takes nothing returns nothing
local button easy
local button medium
local button hard
local dialog difficulty
call DialogSetMessageBJ( difficulty, "Select a difficulty" )
call DialogAddButtonBJ( difficulty, "easy" )
set easy = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( difficulty, "medium" )
set medium = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( difficulty, "hard" )
set hard = GetLastCreatedButtonBJ()
call DialogDisplayBJ( true, difficulty, Player(0) )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "Please wait while host chooses a difficulty" )
call TriggerSleepAction( 30.00 )
call DialogDisplayBJ( false, difficulty, Player(0) )
endfunction