• 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!

Menu to spawn units

Status
Not open for further replies.
Level 3
Joined
Jul 6, 2009
Messages
20
How do you create a menu at the start of the map to select the units you want. I sorta want it to spawn a building and 5 units like in a melee-like map
 
It sounds like you want the Dialog function.

In the trigger editor, take a look at Dialog. (You can use the trigger-search functions)
You can make a little menu appear with buttons. You have to assign variabels to the buttons, (Crt-X in Trigger editor) then use the Event - Dialog Button Is Clicked and then it'll run that trigger, in your case being the starting units.

Example, off the top of my head:
Create Dialog
Set Dialog Title = "Pick A Race"
Add Dialog Button to LastCreatedDialog with text "Orc"
set Button1 to LastCreatedDialogButton..
Add Dialog button to text "Human"
set Button1 to LastCreatedDialogButton..
etc...
Show LastCreated Dialog for the player.

Then create triggers, with the event
If button1 is clicked..

Do your stuff.s
 
Status
Not open for further replies.
Back
Top