Warcraft III resources & community, 2003–2006 · archived

dialog box! need help

1 posts
#1

dialog box! need help

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