• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Selection Box help.

Status
Not open for further replies.
Level 3
Joined
Jul 17, 2005
Messages
36
I need help with fixing my trigger for a menu box that lets u pick a hero. here the trigger
Code:
 Events 
          -Map initialization

Actions
      -Dialog - Change the title of Select to "Select a Hero"
      -Dialog - Create a dialog button for Slect labelled "Warrior"
      Set Warrior = (Last created Dialog Button)

to spawn hero
Code:
Events
         -Dialog - a dialog button is click for Select

Conditions
     -(clicked dialog buton) Equal to Warrior

Actions
      - Unit Create 1 Warrior for (tirggering player) at (center of Spawn <gen>) facing Default building facing degrees
      -Dialog - Hide Select for (triggering player)

My porblem is the Menu wont even poped up.
 
First of all, and this is coming from my memory banks, i think it reads that u cant show dialog at map inizilation. So, a simple solution, change the even to for excample "time - elapsed time is 1.00 seconds". Second of all, i dont see that u have an action that it shows the dialog to someone. Make the actions "dialog - show "select a hero" for player1". Those were what u have to do in the first trigger u had. The second trigger, There is no "triggering player", so you will have to specify the triggers for each player. And u dont need to hide the dialog. I think this sums up ur biggest problems, im sure u can figure it out.
 
Status
Not open for further replies.
Back
Top