Glaivesrit
New Member
- Reaction score
- 8
What i want my trigger to do is when you enter a region, box pops up, hit yes or no, if yes, move to certain region, if no, do nothing. My triggers are:
Second Trigger is
What happens is the button pops up, asks me yes, or no. I hit yes, nothing happens, i hit no, nothing happens.
I have 3 variables, Yes, No, and StormheraldArmory. Yes and no are dialog buttons, StormheraldArmory is dialog. The buttons have no array.
thanks for any help, +rep if you can help make it work!
_now in code tags
Code:
Stormherald Armory Enter
Events
Unit - A unit enters Stormherald Armory Enter <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Ikka
Actions
Dialog - Clear StormheraldArmory
Dialog - Change the title of StormheraldArmory to Do you wish to ente...
Dialog - Create a dialog button for StormheraldArmory labelled Yes
Set Yes = (Last created dialog Button)
Dialog - Create a dialog button for StormheraldArmory labelled No
Set No = (Last created dialog Button)
Dialog - Show StormheraldArmory for (Owner of (Triggering unit))
Trigger - Turn off (This trigger)
Code:
SAED
Events
Dialog - A dialog button is clicked for StormheraldArmory
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Yes
Then - Actions
Environment - Set sky to None
Unit Group - Pick every unit in (Units in Stormherald Armory Enter <gen>) and do (Unit - Move (Picked unit) instantly to (Center of Stormherald Armory Leave <gen>), facing 90.00 degrees)
Trigger - Turn on Stormherald Armory Leave <gen>
Trigger - Turn off (This trigger)
Else - Actions
I have 3 variables, Yes, No, and StormheraldArmory. Yes and no are dialog buttons, StormheraldArmory is dialog. The buttons have no array.
thanks for any help, +rep if you can help make it work!
_now in code tags