HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog assistance

12-27-2002, 12:25 AM#1
Guest
Erm, I'm making a custom map that contains dialogs (and before you ask, NO I will NOT use a dialog engine!) and I'm having a problem with it. What happens is that when I show the dialog, all that happens is the screen dims and the game pauses until I press ENTER. What's wrong?

Here's my code (edited, of course):

Code:
EVENTS
  Map initialization
CONDITIONS
ACTIONS
  Dialog - Clear myDialog
  Dialog - Change the title of myDialog to aTitle
  Dialog - Create a button for myDialog labelled Done
  Set buttons[0] = (Last created dialog button)
  ... (continues in the same vane with different buttons and incrementing indices)
12-27-2002, 12:27 AM#2
ph33rb0
You know you have all these problems with WarCraft but it can never be solved the easy way. First the hidden units, now the dialoges. What's next?
12-27-2002, 12:36 AM#3
Guest
Quote:
What's next?

Oh, I don't know, I'll think of something soon.
12-27-2002, 01:48 AM#4
Ari
Can't put a title on a dialog at initialization. WC3 doesn't like that for some reason. Put it at elapsed time 1 second or something, and see if that helps.
12-27-2002, 02:34 AM#5
Draco
Yup, use time elapsed 0 seconds. (or .1, if you prefer)

Also, if that trigger only runs once, there is no need to clear the dialog. I put it in, just in case sometimes though... Good Luck!

Later.
12-27-2002, 02:37 AM#6
Guest
Thanks, Ari! :dH:

That totally fixed my problem.

(Draco's post mysteriously appears out of nowhere)

Oh, uhh, thanks Draco too, but I've already fixed it. Oh well, I didn't think of setting the timer to 0. :bangH: