By C2-48 Suon
What is a Dialogue?
A dialogue is a Rectangular shaped box with buttons to click on. Click on one of the buttons and something happens. Like the Menu in the in-game of warcraft 3.
How can i make a Dialogue?
Well, it goes like this,
First, you make a trigger(call it whatever you want.)
Then, as the event, it has to be either time, chat event, or unit event. In this case, we will use Time event.
Using time event is pretty easy. Heres how it goes:
- Code: Select all
Events
Time - Elapsed game time 5.00 seconds
Conditions
Actions
Dialogue - Clear mydialogue
Dialogue - Title mydialogue as Stop time?
Dialogue - Create a button for mydialogue titled Yes
Set mydialoguebutton = (Last Clicked Dialogue Button)
Dialogue - Create a button for my dialogue titled No
Set mydialoguebutton = (Last Clicked Dialogue Button)
Dialogue - Show mydialogue to Player 1 (Red)
That is only creating a dialogue. Here is what happens if you click yes OR no.
- Code: Select all
Events
Dialogue - Clicked dialogue button
Condition
Action
If/Then/Else Multiple Actions
Loop Actions
Conditions
(Clicked Dialogue Button) equal to Yes
Then Actions
Unit - Pause myunit
Game - Display text to (All Players) as text: Unit Stopped!
Else Actions
Do Nothing
If/Then/Else Multiple Actions
Loop Actions
Conditions
(Clicked Dialogue Button) equal to No
Then Actions
Game - Display text to (All Players) as text: Unit not stopped, Unit still moving.
Else Actions
Do nothing
You can combine the No and Yes triggers by putting it in one trigger when a dialogue button is clicked.


