| 08-14-2003, 01:21 AM | #1 |
I've made a very simple trigger to practise using dialog. However, it doesn't work at all, nothing happened. dialog creation Events Map initialization Conditions Actions Visibility - Disable fog of war Visibility - Disable black mask Game - Set the time of day to 15.00 Dialog - Create a dialog button for Dialogmain labelled X Set Choose[1] = (Last created dialog Button) Dialog - Create a dialog button for dialogMainn labelled Y Set Choose[2] = (Last created dialog Button) Dialog - Create a dialog button for dialogMain labelled Z Set Choose[3] = (Last created dialog Button) Dialog - Change the title of dialogMain to Testing..... Dialog - Show DialogMain for Player 1 (Red) dialog function Events Dialog - A dialog button is clicked for DialogMain Conditions (Clicked dialog button) Equal to Choose[1] Actions Unit - Create 1 Footman for Player 1 (Red) at (Player 1 (Red) start location) facing 270.00 degrees What's my problem in writting this trigger ? |
| 08-14-2003, 01:48 AM | #2 |
Try "Elapsed Time - .10 seconds" for your Event. Dialogs cannot be displayed at Map Initilization. |
| 08-14-2003, 01:55 AM | #3 |
Now I changed it to: dialog creation ..... Dialog - Change the title of dialogMain to Testing..... dialog appears Events Time - Elapsed game time is 2.00 seconds Conditions Actions Dialog - Show ChooseHeroMain for Player 1 (Red) dialog function ..... ..... But when I run the map, 2 seconds into the game the screen only dims; the dialog doesn't show up. any tips ? |
| 08-14-2003, 02:42 AM | #4 |
You mean show DialogMain, right? That's the one you added the buttons to. |
| 08-14-2003, 07:16 AM | #5 |
Try this for your map... Integers needed are; Main_Menu - Dialog - New Dialog (Default) Main_Menu_Btn - Dialog Button Array - None Menu_Window1 - Dialog - New Dialog (Default) Menu_Window1_Btn - Dialog Button Array - None Menu_Window2 - Dialog - New Dialog (Default) Menu_Window2_Btn - Dialog Button Array - None Menu_Window3 - Dialog - New Dialog (Default) Menu_Window3_Btn - Dialog Button Array - None Now for your Triggers..... ¤ Start ¤ Event, Map Initilization Action, Dialog - Create a dialog button for Main_Menu labled (whatever you want the first button to say) Action, Set Menu_Main_Btn[0] = (Last created dialog Button) Action, Dialog - Create a dialog button for Main_Menu labled (whatever you want the second button to say) Action, Set Menu_Main_Btn[1] = (Last created dialog Button) Action, Dialog - Create a dialog button for Main_Menu labled (whatever you want the third button to say) Action, Set Menu_Main_Btn[2] = (Last created dialog Button) Action, Dialog - Create a dialog button for Menu_Window1 Labled Button 1 of Window 1 Action, Set Menu_Window1_Btn[0] = (Last created dialog Button) Action, Dialog - Create a dialog button for Menu_Window1 Labled Button 2 of Window 1 Action, Set Menu_Window1_Btn[1] = (Last created dialog Button) Action, Dialog - Create a dialog button for Menu_Window1 Labled Button 3 of Window 1 Action, Set Menu_Window1_Btn[2] = (Last created dialog Button) Action, Dialog - Create a dialog button for Menu_Window2 Labled Button 1 of Window 2 Action, Set Menu_Window2_Btn[0] = (Last created dialog Button) Action, Dialog - Create a dialog button for Menu_Window2 Labled Button 2 of Window 2 Action, Set Menu_Window2_Btn[1] = (Last created dialog Button) Action, Dialog - Create a dialog button for Menu_Window2 Labled Button 3 of Window 2 Action, Set Menu_Window2_Btn[2] = (Last created dialog Button) Action, Dialog - Create a dialog button for Menu_Window3 Labled Button 1 of Window 3 Action, Set Menu_Window3_Btn[0] = (Last created dialog Button) Action, Dialog - Create a dialog button for Menu_Window3 Labled Button 2 of Window 3 Action, Set Menu_Window3_Btn[1] = (Last created dialog Button) Action, Dialog - Create a dialog button for Menu_Window3 Labled Button 3 of Window 3 Action, Set Menu_Window3_Btn[2] = (Last created dialog Button) ¤ Dialog Button Clicked ¤ Event, Dialog - A dialog button is clicked for Main_Menu Action, If ((Clicked dialog button) Equal to Menu_Main_Btn[0] then do (Trigger - Turn on (your setup trigger for that <gen>) else do Nothing Action, If ((Clicked dialog button) Equal to Menu_Main_Btn[1] then do (Trigger - Turn on (your setup trigger for that <gen>) else do Nothing Action, If ((Clicked dialog button) Equal to Menu_Main_Btn[2] then do (Trigger - Turn on (your setup trigger for that <gen>) else do Nothing ¤ Dialog Show ¤ Event, Time - Elapsed game time is 2.00 seconds Action, Dialog - Change the title of Main_Menu to (Whatever you want the title to be) Action, Dialog - Show Main_Menu for Player 1 (Red) Action, Game - Pause the Game with this array of triggers, it will create a menu for player 1 (red) to pick from 3 buttons... now in your setup triggers that you will have for each option, make sure you unpause the game... good luck with your map. Dark_Baron_Prot |
| 08-14-2003, 07:52 AM | #6 |
I had the smae problem a while back, I played around for hours and found one simple problem. First of all have your varible settings and the way you open your dialog in seperate trigger. This is not a must, but makes things way easier. Do all the triggering the same, but in the new trigger do this. Event - Time Elaspes 2 seconds Condtions - None Actions - Change Title of "Dialog" to "Title" - Show "Dialog" If you take out the - Change Title of "Dialog" to "Title" action your screen will just dim, even if you set it in a different trigger. Personal I do not know why this happens, but it does. |
| 08-29-2003, 03:05 AM | #7 |
Guest | Please remember that you can't use Map Initialization on dialog triggers. |
