- Joined
- Mar 29, 2009
- Messages
- 139
This is what you need to do if you are going to make a dialog.
You will need some variables.
First, enter the trigger editor. Then click the the yellow X button.
Create a new variable, then call it whatever you want. I call mine Dialog.
Find the variable type Dialog. Then click OK.
Next you will need a number of dialog buttons.
Create a new variable, then call it whatever you want.
I call mine DialogButton1. Find the variable type Dialog Button.
Then click OK. You will need to do the same if you need more buttons.
Just change the name of the button.
Now create the trigger.
Create a new category, then the trigger. Call it whatever you want.
I call mine Dialog. Then make the trigger look like this:
To make things happen when you click a button.
Another trigger is needed. It should be like this:
Done! You now have a dialog that works.
NOTE: You better call the dialog buttons the name of what you are calling the buttons. That makes it easier to remember if you have many buttons.
I hope this was usefull
You will need some variables.
First, enter the trigger editor. Then click the the yellow X button.
Create a new variable, then call it whatever you want. I call mine Dialog.
Find the variable type Dialog. Then click OK.
Next you will need a number of dialog buttons.
Create a new variable, then call it whatever you want.
I call mine DialogButton1. Find the variable type Dialog Button.
Then click OK. You will need to do the same if you need more buttons.
Just change the name of the button.
Now create the trigger.
Create a new category, then the trigger. Call it whatever you want.
I call mine Dialog. Then make the trigger look like this:
-
Dialog
-
Events
- Time - Elapsed game time is 10.00 seconds
- Conditions
-
Actions
- Dialog - Clear Dialog
- Dialog - Change the title of Dialog to Are you a human?
- Dialog - Create a dialog button for Dialog labelled Yes
- Set DialogButton1 = (Last created dialog Button)
- Dialog - Create a dialog button for Dialog labelled No
- Set DialogButton2 = (Last created dialog Button)
- Dialog - Show Dialog for Player 1 (Red)
-
Events
Another trigger is needed. It should be like this:
-
DialogButton1
-
Events
- Dialog - A dialog button is clicked for Dialog
-
Conditions
- (Clicked dialog button) Equal to DialogButton1
-
Actions
- Game - Display to (All players) for 10.00 seconds the text: Thanks for letting ...
-
Events
-
DialogButton2
-
Events
- Dialog - A dialog button is clicked for Dialog
-
Conditions
- (Clicked dialog button) Equal to DialogButton2
-
Actions
- Game - Display to (All players) for 10.00 seconds the text: Thats crazy... >_>
-
Events
NOTE: You better call the dialog buttons the name of what you are calling the buttons. That makes it easier to remember if you have many buttons.
I hope this was usefull
Last edited: