| 11-16-2002, 10:05 AM | #1 |
Guest | Argh.. this is the first time I've dinked around with dialogs, so could someone real fast tell me how to get them to display? I have my dialog variable, and I create of buttons on it and tell it to display.. but.. nothing. What stupid boo-boo am I doing? ;) -Sharsnik |
| 11-16-2002, 11:14 AM | #2 |
Action: Dialog - Show/Hide Dialog |
| 11-16-2002, 11:32 AM | #3 |
Guest | Right.. but I figured out that you can't do that with a Map Initialization trigger... it has to be run from another trigger... and waits are important too :/ |
| 11-16-2002, 11:36 AM | #4 |
Problems with dialogs? Or do you just want to shorten your code? Get the dialog engine! |
| 11-16-2002, 07:36 PM | #5 |
Ok, here's some tips. (unless you want to use someone's pre-made dialog engine) Here's how to make a very basic one. 1. The Variables - Make a 'Dialog' variable. (ex. "dialogx") - Make a 'Dialog Button' variable ARRAY. (ex. "dialogbutton") 2. The trigger(s) Event - (The event to trigger the dialog/menu) Actions: Dialog - Clear (dialogx) Dialog - Change title of (dialogx) to "Whatever" Dialog - Create a dialog button for (dialogx) with the text (Choice 1) Set Variable - Set (dialogbutton [0]) to the last created dialog button Dialog - Create a dialog button for (dialogx) with the text (Choice 2) Set Variable - Set (dialogbutton [1]) to the last created dialog button Dialog - Show (dialogx) for player Y. - - - Event - Dialog - A button is clicked for (dialogx) Condition - Dialog Button Comparrison - Clicked Dialog Button equal to dialog button [0] Actions: Dialog - Hide (dialogx) {NOTE - You could also clear it now too.} (Enter all other actions for "Choice 1" here) - - - Event - Dialog - A button is clicked for (dialogx) Condition - Dialog Button Comparrison - Clicked Dialog Button equal to dialog button [1] Actions: Dialog - Hide (dialogx) {NOTE - You could also clear it now too.} (Enter all other actions for "Choice 2" here) - - - There. That will give you a simple understanding of dialogs. Edited because: You could also put all actions in one trigger for all of the choices using if/then/else statments. Also, remember that when you 'clear' a dialog, it forgets which button was clicked. . |
