HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog

12-28-2004, 11:22 AM#1
grd
I'm trying to make a dialog in World Editor but I must be doing something wrong can some show how to make a simple 2 button dialog?

--------------------------------------------------------------------------------------------------------

what I'm trying to get is when a unit enters a region, dialog comes up reading "will you buy this house it costs 500 gold" [yes] [no]

[yes] change ownership to "player"
[no] do nothing

note: I just want you to show me how to make a dialog, I just added the what I'm trying to do to show you want I'm using the script for.
12-28-2004, 12:18 PM#2
AFB-DieHard
You'll need a trigger to initialise your dialog, one to show it one to detect if yes is clicked.
It's quite simple.

Initialise:
Event: map init
Create a dialog, then set a variable to it. Then add a button "yes" to it and set a variable to the button. Then add another button "no" but do nothing with it.

Then a trigger to show the dialog(you'll know how to do this)

Detect:
Event: player clicks a dialog button
Condition: clicked button equal to <your variable>
Action: your actions...
12-28-2004, 12:36 PM#3
Stitch
hope this helps. i did this just for you :) there may be a better way to do it, as ive been experimenting with variables and stuff. *ahem* nobody answered my question yet. :) anyhow if you need more help just ask. gl

p.s. i tried on my map i used to demo the acticon "do nothing" for the "no" dialog.
when i did that and came but it gave me 2 yes and 2 no options. :)
so i used "Dialog - Clear dial1" instead of "do nothing" and it worked better. im still young at this though
12-28-2004, 12:46 PM#4
grd
wow thanks guys you both get + rep for the help and credit on my map
12-29-2004, 04:45 PM#5
Captain Griffen
You cannot set dialogue things on map initialisation.

Took me about 1/2 hour to work out what the problem in my map was.
12-30-2004, 04:57 AM#6
LegolasArcher
Captain is correct. You must initialize the dialog at 0.00 seconds or later. Map Initialization is something different entirerly, and many actions dont work with that event (I won't get into the details, since you can't do anything about it).