HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog Boxes

07-30-2004, 12:45 AM#1
High Loremaster
I don't understand the triggers to create dialog boxes and dialog buttons. Could anyone breifly explain?
07-30-2004, 01:04 AM#2
Eeporgorg
First, Create a Variable for the Dialog itself. Let's call this, "Dialog1". Then, create a Dialog button variable with an array for however many buttons you're going to have. Let's say you're going to have 3. Create a variable called "DialogButton1(1-3)"
Then, in whatever trigger you have your Dialog in, put this sequence of actions
Code:
Clear Dialog1
Change Title of Dialog1 to (Your Title)
Create Dialog Button Labelled (Button Name)
Set DialogButton1(1) = Last Created Button
Create Dialog Button Labelled (Button Name)
Set DialogButton1(2) = Last Created Button
Create Dialog Button Labelled (Button Name)
Set DialogButton1(3) = Last Created Button
Show Dialog1


Then, you must create other triggers for what happens when you click the button, always having these 3 entries:
Code:
Events: A Dialog Button For Dialog1 Is clicked
Conditions(Someyimes you don't need this):Clicked Dialog button = DialogButton1(whatever number)
Actions: Hide Dialog1

The rest of the trigger you customize yourself.
07-30-2004, 07:46 AM#3
Need-Help-10101
um if its no trubble can some one run me through this? :(