Husky
Local Lurker
- Reaction score
- 119
Hi,
Yeah as the title says when a player clicks a certain dialog button its meant to create a unit of that type.
This is what i've got:
I've got no idea why it doesn't work. Hopefully one of you do,
Thanks,
-Husky
Yeah as the title says when a player clicks a certain dialog button its meant to create a unit of that type.
This is what i've got:
Code:
T1 Demos Chosen
Events
Dialog - A dialog button is clicked for Class_Di_Box
Conditions
((Triggering player) is in (All allies of Player 2 (Blue))) Equal to True
(Clicked dialog button) Equal to Class_DiButton_Demos
Actions
If ((Clicked dialog button) Equal to Class_DiButton_Demos) then do (Unit - Create 1 Demolitions for (Picked player) at (Center of T1Red Teams Flag <gen>) facing Default building facing degrees) else do (Do nothing)
Game - Display to (All players) the text: ((Name of (Triggering player)) + of |cff32cd32Green Team|r has picked the Demolitions Class.)
I've got no idea why it doesn't work. Hopefully one of you do,
Thanks,
-Husky


