short buttonshort StateIf ( State == 0 ) messagebox "What do you want to do?" "This" "That" "Other" set State to 10endIf if ( state == 10 ) set button to GetButtonPressed if ( button == -1 ) return elseif ( button == 0 ) Do This set State to 40 elseif ( button == 1 ) Do that set state to 40 else Do the Other set state to 40 endifendIf
MessageBox "Message goes here", "Choice 1", "Choice 2", "Choice 3"