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

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
 
Level 9
Joined
May 28, 2007
Messages
365
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
 
Level 3
Joined
Jul 6, 2009
Messages
20
you mean a "dialog" ? just tell me which kind of menu or which map has the one you want to have

My map Warcraft War of the factions... once it has that it would be ready for beta testing... plus im having a little bit of trouble of hero limits...
 
Status
Not open for further replies.
Top