- Joined
- Jan 5, 2009
- Messages
- 1,127
Dialogs
They are 'menus' with buttons that have different options.
Dialogs are created using GUI
What you need:
-Some GUI skill
-Some Variables
====================
Create these variables.
DialogButton
-Array? Yes. What number? The amount of Buttons you want
Dialog1
-Array? No
=====================
Ok Heres our triggers. First Setup.
This is where the player chooses from the buttons we will create.
-
Dialog Setup
-
Events
-
Unit - A unit enters Region 000 <gen>
-
-
Conditions
-
Actions
-
-------- Buttons --------
-
Dialog - Create a dialog button for Dialog1 labelled Naga
-
Set DialogButtons[1] = (Last created dialog Button)
-
Dialog - Create a dialog button for Dialog1 labelled Human
-
Set DialogButtons[2] = (Last created dialog Button)
-
Dialog - Create a dialog button for Dialog1 labelled Demons
-
Set DialogButtons[3] = (Last created dialog Button)
-
-------- Show --------
-
Dialog - Change the title of Dialog1 to What race do like t...
-
Player Group - Pick every player in (All players) and do (Dialog - Show Dialog1 for (Picked player))
-
-
Now in my dialog the effects are:
-
ButtonOne
-
Events
-
Dialog - A dialog button is clicked for Dialog1
-
-
Conditions
-
(Clicked dialog button) Equal to DialogButtons[1]
-
-
Actions
-
Game - Display to (All players matching ((Matching player) Equal to (Triggering player))) for 20.00 seconds the text: You luv Naga!!!
-
-
-
ButtonTwo
-
Events
-
Dialog - A dialog button is clicked for Dialog1
-
-
Conditions
-
(Clicked dialog button) Equal to DialogButtons[2]
-
-
Actions
-
Game - Display to (All players matching ((Matching player) Equal to (Triggering player))) for 20.00 seconds the text: You luv Humans!!!
-
-
-
ButtonThree
-
Events
-
Dialog - A dialog button is clicked for Dialog1
-
-
Conditions
-
(Clicked dialog button) Equal to DialogButtons[3]
-
-
Actions
-
Game - Display to (All players matching ((Matching player) Equal to (Triggering player))) for 20.00 seconds the text: You luv Demons!!!
-
-
Hope this helps!!!
Last edited: