| 07-11-2004, 03:57 PM | #1 |
I need to use a dialogue screen for my map, to choose game types, Top vs Bottom or Full Team. So far I have - - - Event: Elapsed Game Time is 1.00 Action: Show (Choose) for Player 1 (Red) Change title of (Choose) to Select Game Type Create a dialogue button for (Choose) Labeled Top vs Bottom Create a dialogue button for (Choose) Labeled Full Game When I go in the game, the box comes up with the title but no buttons. Choose is my dialogue variable, and I have two dialogue button variables, TvB and Full, how can I get this to work? I don't understand the Dialogue buttons.... :( |
| 07-11-2004, 04:45 PM | #2 |
You will need to assign the buttons to variables by using last created dialog button. Then you will need individual triggers to recognize that the button stored in the variable has been pressed, and then respond accordingly. PS. Flame me if I'm wrong, I dont use dialogs much. |
| 07-11-2004, 04:45 PM | #3 |
Firstly, the Action, Show (Choose) for Player 1 (Red) should come after the changing of the title and creation of the dialogue buttons. The Show/Hide Action always comes last. That will fix your problem. Secondly, John is correct. This is the setup you will want: Action: Change title of (Choose) to Select Game Type Action: Create a dialogue button for (Choose) Labeled Top vs Bottom Action: Set TvB = (Last created dialog button) Action: Create a dialogue button for (Choose) Labeled Full Game Action: Set Full = (Last created dialog button) Action: Show (Choose) for Player 1 (Red) In addition, another trigger must be created. Code:
[i]Event[/i]: Dialog - A dialog button is clicked for (Choose) [i]Conditions[/i]: [i]Actions[/i]: If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions: (Clicked dialog button) Equal to TvB Then - Actions: [b]Your Voting Setup for TvB[/b] Else - Actions If (All Conditions are Ture) then do (Then Actions) else do (Else Actions) If - Conditions: (Clicked dialog button) Equal to Full Then - Actions: [b]Your voting Setup for Full[/b] Else - Actions: Do Nothing And there you go. All set. |
| 07-11-2004, 05:05 PM | #4 |
Danke Sehr! |
