• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

I need help on making a selection menu

Status
Not open for further replies.
Level 2
Joined
Jun 26, 2004
Messages
22
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
 
Level 4
Joined
Jun 22, 2004
Messages
94
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...

I hope i was able to help you out[/list]
 
Status
Not open for further replies.
Top