- Joined
- Sep 15, 2006
- Messages
- 426
I'm using a dialog in my map to let the players select their initial unit, but it's not doing anything when the dialog button gets clicked. Here's the trigger. Can anybody tell me what's not going right?
-
Display and Set Up Dialog
-
Events
- Time - Elapsed game time is 0.10 seconds
- Conditions
-
Actions
-
Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
-
Loop - Actions
- Dialog - Change the title of d_typeselect to Select Class
- Dialog - Create a dialog button for d_typeselect labelled Select Grunt
- Set db_grunt = (Last created dialog Button)
- Dialog - Create a dialog button for d_typeselect labelled Select Sniper
- Set db_sniper = (Last created dialog Button)
- Dialog - Create a dialog button for d_typeselect labelled Select Parahacker
- Set db_parahacker = (Last created dialog Button)
- Dialog - Create a dialog button for d_typeselect labelled Select Seige Engine...
- Set db_seigeeng = (Last created dialog Button)
- Dialog - Show d_typeselect for (Picked player)
-
Loop - Actions
-
Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
-
Events
-
Click Grunt
-
Events
- Dialog - A dialog button is clicked for d_typeselect
-
Conditions
- (Clicked dialog button) Equal to db_grunt
-
Actions
- Unit - Create 1 Grunt for (Triggering player) at (Center of Marine Start <gen>) facing Default building facing degrees
- Hero - Create M7 Assault Rifle and give it to (Last created unit)
- Dialog - Hide (Clicked dialog) for (Triggering player)
-
Events