HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog Button

09-09-2009, 06:32 AM#1
darkalex
Hey there, today I tried making my first dialog box, I managed and it displays correctly, I also added each created buttons to variables but I can't find an event response for event.
Trigger:
Events
Dialog - A dialog button is clicked for God
Conditions
(Clicked dialog button) Equal to Button[1]
Actions

I need an action for example, Unit - Add Ability to Hero[Number of ClickingPlayer]... But there isn't such an action as clickingplayer or something like that, so how can I add ability to the hero of the player?
With Triggering player it doesn't work...
09-09-2009, 01:24 PM#2
Darkrider
as far as i remember you can use triggering player

perhaps you are doing something wrong
09-09-2009, 02:00 PM#3
Anachron
You must be doing it wrong, it actually works with GetTriggeringPlayer()
09-09-2009, 08:12 PM#4
darkalex
Yeah probably this trigger must be wrong because I've tried as player red to add ability to the hero of player red and it didn't work, anyway, does anyone know what's wrong with this trigger?
Trigger:
Dialog
Collapse Events
Unit - A unit enters (Playable map area)
Collapse Conditions
((Entering unit) is A Hero) Equal to True
Collapse Actions
Wait 1.00 seconds
Set God = (New Dialog)
Dialog - Change the title of God to Choose God
Dialog - Create a dialog button for God labelled Rhak'Thar (+20% att...
Set Button[1] = (Last created dialog Button)
Dialog - Create a dialog button for God labelled Maar (10% lifesteal...
Set Button[2] = (Last created dialog Button)
Dialog - Create a dialog button for God labelled Boor (+50 armor)
Set Button[3] = (Last created dialog Button)
Dialog - Create a dialog button for God labelled Coorlek (+50% mana ...
Set Button[4] = (Last created dialog Button)
Dialog - Create a dialog button for God labelled Shinpleo (+25 damag...
Set Button[5] = (Last created dialog Button)
Dialog - Create a dialog button for God labelled Ither (+10 Intellig...
Set Button[6] = (Last created dialog Button)
Dialog - Create a dialog button for God labelled Hootha (+10 Strengh...
Set Button[7] = (Last created dialog Button)
Dialog - Create a dialog button for God labelled Othen (+10 agility)
Set Button[8] = (Last created dialog Button)
Dialog - Show God for (Owner of (Entering unit))