HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog Boxes

07-08-2003, 10:13 AM#1
Balthamos
hi, I just tested out making dialog boxes, since I've never had to use them before, could someone tell me why it wouldn't be displaying when I try to use it? Essentially the screen goes dark, as if a box was to appear, however none appears.

Can I also double check the method for creating dialog boxes, they're set as a variable correct? which you add dialog buttons to? Is this the right method?

Cheers in advance.
07-08-2003, 10:46 AM#2
Goobjihn
Yes you need to use variables to set up dialogue. You need seperate variables for the dialogue, and dialogue buttons. The "dialogue" variable is what will store the "question" or whatever it is at the top of the big box in which your buttons appear. So then the buttons are obviously the different selections you can make. Heres an example of how to setup a simple dialogue:

first creat your variables, one for the Question(dialogue), and however many for the choices(dialogue buttons)

Race Select Dialogue team1
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Dialog - Change the title of dialogue_box to Choose path 1 or 2
Dialog - Create a dialog button for dialogue_box labelled Path 1
Set button1 = (Last created dialog Button)
Dialog - Create a dialog button for dialogue_box labelled Path 2
Set button2 = (Last created dialog Button)
Dialog - Show dialogue_box for Player 1 (Red)

Then you can use Event - Dialogue Button Clickand condition Dialogue Button Comparison to refer to the dialogue/buttons clicked.
07-08-2003, 11:26 AM#3
Balthamos
AHH, thankyou thankyou thankyou, it worked, perfect. I didn't realise I'd have to create the buttons every time I wanted to work the same dialog box. Thankyou very much.