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

Trigger Help (Please Help)

Status
Not open for further replies.
Level 4
Joined
Sep 1, 2005
Messages
73
Hi, i was wondering if someone could help me with this. What are the triggers to do that race selection box that appears just after loading, then you select one of the races then it's main building and worker units appear at your start location or a location on the map somewhere. sorry i cant rearly explain it better. Help would be appreciated...
Thanks in advance.
 
Level 2
Joined
Mar 28, 2006
Messages
15
If you mean a DIALOG box that would be something like this:
Create a variable for a Dialog called whatever.
Create a X amount of variables for dialog buttons (X standing for the number of races) called whatever.
Event > Map Initilization
Conditions > None
Actions > Create a Dialog box for "Dialog"
New Action1 > Create a dialog button for "X"
New Action2 > Set "X" = Last created Dialog Button
Repeat Actions > Repeat Actions 1 and 2 as many times as needed
New Action4 > Show last created Dialog to "All Players"
New Trigger:
Event > Dialog button is clicked for "Dialog"
Condition > Last clicked Dialog Button = "X"
Actions > Units - Create "X" amount of type of unit(s) at location "Location"
Repeat Action > if using more then one type of unit reapeat the action "Units - Create "X" amount of type of unit(s) at location "Location"" Using a different unit type/amount whatever.
That SHOULD work but I can't use my World Editor right now to be sure so I hope that helps.
 
Status
Not open for further replies.
Top