Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
I need to make a selection menu for my map so it will trigger some things in it on what you choose, can you explain what i have to do in world editor's trigger editor to activate this annoying thing? :x
first thing: a menu with buttons is called dialog in the editor. if you scroll down the action menu you'll find an area with create "button for dialog" "clear dialog" etc.
second thing you need many variables. one for each buton and one for each whole dialog.
to create a dialog do following:
set varialbe: menu=dialog
select1: dialogbutton
select2: dialogbutton
select3: dialogbutton
event
time elapsed 2 seconds
condition
nothing
actions
create a button for "menu" labelled "select 1"
set "select1" equal to last created dialogbutton
create a button for "menu" labelled "select 2"
set "select2" equal to last created dialogbutton
create a button for "menu" labelled "select 3"
set "select3" equal to last created dialogbutton
create a button for "menu" labelled "cancel"
change the title of "menu" to "my menu"
show menu for "player 1"
some adds:
further you need trigger which refer to a menubuttonclick
you have to put the action "show dialog" as the last action otherwise title won't be displayed.
if you leave a button (cancel) without any trigger referring to a clickevent, the dialog will be closed automatically if click this button...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.