• 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.

dialog box! need help

Status
Not open for further replies.
Level 7
Joined
Dec 8, 2005
Messages
319
ok so i am not sure how to give a unit to the correct player when a dialog button is pushed.

i gave all the players the same menu and buttons so there is no condision that i saw to say if player1 equal to clicks button 1...

here is my code but it is not really working.

DialogBTN2
Events
Dialog - A dialog button is clicked for HeroSelection
Conditions
(Clicked dialog button) Equal to AMelee
Actions
Dialog - Hide HeroSelection for (Owner of (Triggering unit))
Unit - Create 1 Peasant for (Triggering unit) at (Center of (Playable map area)) facing Default building facing degrees
 
Status
Not open for further replies.
Top