Warcraft III resources & community, 2003–2006 · archived

DIalog Problem

3 posts
#1

DIalog Problem

i wanted to make a dialog for my map so i did this...

1st trigger:
EVENTS
time-elapsed game time is 1 seconds
CONDITIONS
ACTIONS
dialog-create a dialog button for Easy(a variable) labelled Easy(title)
dialong-create a dialog button for Normal labelled Normal

Next trigger:
EVENTS
dialog-a dialog button is clicked for Easy
CONDITIONS
ACTIONS
unit group-pick every unit in units owned by player 12 and do unit-set life of picked unit to 50%

Then i did the normal trigger set life 100% but the dialog didnt show up on my make when the game started :( :(
#2
Here's one I used in a map...I called the dialog buttons b1, b2, etc. The dialog menu is called dmenu1.

Events: Time - Elapsed game time is 0.10 seconds
Conditions: (Whatever you want)
Actions:
Dialog - Change the title of dmenu to Menu
Dialog - Create a dialog button for dmenu labelled choice1
Set b1 = (Last created dialog Button)
Dialog - Create a dialog button for dmenu labelled choice2
Set b2 = (Last created dialog Button)
(continue the last two for however many you need)
Dialog - Show dmenu1 for Player 1 (Red)

You're other trigger should work fine, you're dialog creating one is the faulty one.
#3
The thing is rather simple... you've just forgot to use the Dialog - Show Dialog correctly. Also don't forget to clear it before.