• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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