• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

DIalog Problem

Status
Not open for further replies.
Level 9
Joined
Jun 26, 2005
Messages
511
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 :( :(
 
Level 3
Joined
Nov 21, 2004
Messages
73
Here's one I used in a map...I called the dialog buttons b1, b2, etc. The dialog menu is called dmenu1.

Code:
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.
 
Level 3
Joined
Aug 18, 2005
Messages
45
The thing is rather simple... you've just forgot to use the Dialog - Show Dialog correctly. Also don't forget to clear it before.
 
Status
Not open for further replies.
Top