HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I know this sounds easy

07-16-2006, 09:59 PM#1
Fallenzeca
Im creating a trigger with dialog.
It's supposed to create a dialog for a entering unit owner and then when
1 of 2 buttons are clicked an action will take place. It seems that there's
where the problem lies. The dialog shows and the dialog buttons but when i
click one of them, nothing happens =/
trigger1:
Trigger:
Collapse Events
Unit - A unit enters TeleRookToMainOracle <gen>
Collapse Conditions
(Max life of (Triggering unit)) Greater than or equal to 970.00
(Unit-type of (Triggering unit)) Equal to Adventurer
Collapse Actions
Dialog - Clear Dialog
Dialog - Change the title of Dialog to Are you ready for M...
Dialog - Create a dialog button for Dialog labelled Yes
Set DialogButton[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled No!
Set DialogButton[2] = (Last created dialog Button)
Dialog - Show Dialog for (Owner of (Entering unit))
This trigger works perfect.
trigger2
Trigger:
Collapse Events
Dialog - A dialog button is clicked for Dialog
Collapse Conditions
(Clicked dialog button) Equal to DialogButton[1]
Collapse Actions
Unit - Move (Triggering unit) instantly to (Center of ArriveRookVocChoose <gen>)
When I click on DialogButton[1] the unit won't be moved... but the trigger
seem perfectly reasonable to me.
I will appreciate all help =)
Also, thanks to all great tutorials that have helped/helping me on my first rpg
07-16-2006, 10:09 PM#2
Jacek
Pretty obvious...

Triggering unit is available to use only in first trigger because you have unit event in there, in second trigger Triggering unit is equal to No Unit. Solution is making variable of type Unit, before dialog set this variable to the unit, and use that variable in Move unit instantly action.
07-17-2006, 08:56 AM#3
Fallenzeca
omg, greez guessed i missed that >.<
Thanks alot, been bugging since forever( aprox 2days xP)