• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Condition: Dialog Clicked Item

Status
Not open for further replies.
Level 7
Joined
Nov 13, 2006
Messages
243
Hello!

Can someone tell me what is the condition to check what dialog button is clicked and get the Id of the button from a variable? (if i didn't make myself clear (sorry for that), i am talking about a dialog based hero picking system like warcraft 3).


Thanks and have a nice day.
 
Level 8
Joined
May 31, 2009
Messages
439
I believe the variable must be set as a dialog button. Afterwards, in your conditions, you do the following :

<Your_varaible> == Last dialog button clicked

I don't know if that's precisely how it is, but as soon as I get back home, I'll check my map (I used them to make game options, and yes, they work perfectly) and post what triggers I used to check the conditions :)
 
Level 6
Joined
Sep 28, 2009
Messages
222
the condition is called "used dialog item"

to check it just save the button in a dialog item variable on init and then insert this variable in the condition. basically its like in the WE just that you have "used dialog item" instead of "clicked dialog button"
 
Status
Not open for further replies.
Top