Basics of a Dialogue

Submit a tutorial!

Basics of a Dialogue

Postby C2-48 Suon on Thu Mar 15, 2007 4:11 am

Basics of a Dialogue
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.
Character
Level 2 Thief
Lloyd
Hp - 345
MP - 140
Strength - 11
Agility - 23
Intelligence - 11
Weapon - Iron Daggers
Damage - 5-15
Armor - Rags
Image
User avatar
C2-48 Suon
Site Admin
Site Admin
 
Posts: 107
Joined: Sun Feb 18, 2007 10:50 pm

Postby Advertisement on Mon Nov 23, 2009 6:54 pm

Advertisement
 

  • Users browsing this forum: No registered users and 1 guest
cron