T
Todilo
Guest
I have created a dialog using a tutorial. The dialog creation looks like this:
And the Teleport thingy(which also will be used to spawn creeps looks like this:
How do I really find the UNIT that triggered the first dialog butotn, so I can teleport him?
Code:
dialog choice
Events
Unit - A unit enters Dialog 3 <gen>
Unit - A unit enters Dialog 2 <gen>
Unit - A unit enters Dialog 4 <gen>
Unit - A unit enters Dialog 5 <gen>
Unit - A unit enters Dialog 1 <gen>
Conditions
Actions
Dialog - Clear choice_dialog
Dialog - Change the title of choice_dialog to Choose!
Dialog - Create a dialog button for choice_dialog labelled Enter Shop Area
Set DialogButtons[0] = (Last created dialog Button)
Dialog - Create a dialog button for choice_dialog labelled Creeps!
Set DialogButtons[1] = (Last created dialog Button)
Dialog - Show choice_dialog for (Owner of (Triggering unit))
Code:
Enter Shop
Events
Dialog - A dialog button is clicked for choice_dialog
Conditions
Actions
If ((Clicked dialog button) Equal to DialogButtons[0]) then do (Unit - Move (Triggering unit) instantly to (Center of Shop <gen>)) else do (Do nothing)
If ((Clicked dialog button) Equal to DialogButtons[1]) then do (Game - Display to (All players) the text: CREEPIES) else do (Do nothing)
How do I really find the UNIT that triggered the first dialog butotn, so I can teleport him?


