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