Equivalent
New Member
- Reaction score
- 0
I'm trying to make a dialog box which asks the owner of the unit if they would like to move to a city. I get the box and everything, but the hero doesn't teleport. Here are my trigger codes:
Trigger 1:
Trigger 2
Trigger 3
What am I doing wrong? Also, how can I make it so that the player has to pay a certain amount of gold if they choose Yes.
Trigger 1:
Code:
Dialog to City
Events
Unit - A unit comes within 100.00 of Admiral Proudmoore 0081 <gen>
Conditions
Actions
Dialog - Clear To_City
Dialog - Change the title of To_City to Travel to the City ...
Dialog - Create a dialog button for To_City labelled Yes
Set ToCity_Answer_Yes[1] = (Last created dialog Button)
Dialog - Create a dialog button for ToVictoriaIsland labelled No
Set To_City_Answer_No[2] = (Last created dialog Button)
Dialog - Show To_City for (Owner of (Triggering unit))
Trigger 2
Code:
Button Yes
Events
Dialog - A dialog button is clicked for To_City
Conditions
(Clicked dialog button) Equal to ToCity_Answer_Yes[1]
Actions
Unit - Move (Triggering unit) instantly to (Center of City Start Region <gen>)
Trigger 3
Code:
Button No
Events
Dialog - A dialog button is clicked for To_City
Conditions
(Clicked dialog button) Equal to ToCity_Answer_Yes[2]
Actions
Dialog - Hide To_City for (Triggering player)
What am I doing wrong? Also, how can I make it so that the player has to pay a certain amount of gold if they choose Yes.