• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Dialog

Level 6
Joined
May 7, 2007
Messages
84
Dialog
What is a Dialog? Well Dialogs can have many uses, most are for modes. Some are for abilities.

Starting your Dialog, every dialog (and dialog button) needs a variable.
Needed Variables -
PHP:
Set (Your Text Here) AKA. Map_Choice | Dialog / Map_1 | Dialog Button / Map_2 | Dialog Button / Map_3 | Dialog Button / Etc. etc. etc.

Code:
[CENTER]Dialog Start[/CENTER]
[COLOR="Red"]Event -[/COLOR]
Time - Elapsed game time is 0.00 seconds
[COLOR="Lime"]Condition - [/COLOR]
Actions - 
Dialog - Clear Map_Choice
Dialog - Change the title of Map_Choice to (Your text here)
Dialog - Create a dialog button for Map_Choice labelled [Your text here (Text is 
name of map or mode)] 
Set Map_1 = (Last created dialog button)
Dialog - Create a dialog button for Map_Choice labelled [Your text here (Text is name of map or mode)]
Set Map_2 = (Last created dialog button)
Dialog - Create a dialog button for Map_Choice labelled [Your text here (Text is name of map or mode)]
Set Map_3 = (Last created dialog button)
Dialog - Show Map_Choice to (Chosen  Player)


Now that you've done that you will want your Variables for Map_1, Map_2, and Map_3 to do something. :thumbs_up:

Code:
Map1 do something
[COLOR="Red"]Events - [/COLOR]
Dialog - A dialog button for Map_Choice is clicked.
[COLOR="Lime"]Conditions - [/COLOR]
(Clicked Dialog button) Equal to Map_1
Actions - 
[COLOR="Yellow"](ALL YOUR ACTIONS YOU WANT DOWN HERE!)[/COLOR]

Now basically all you have to do is copy and paste this trigger, then change the Condition to Equal to Map_2. And change around your actions, and now you've got your Dialog!

Any comments on this tutorial just email me at [email protected]

And this is my first tutorial it might not be the best. Good luck with your Dialogs!
 
Last edited:
Level 32
Joined
Oct 23, 2006
Messages
5,291
This is what happened:
  1. YOU EVIDENTLY DID NOT READ THE STICKY THREAD:
    [self="http://hiveworkshop.com/forums/showthread.php?t=32662"]IMPORTANT NOTICE - Read Before Posting![/self]

  2. YOU EVIDENTLY DID NOT READ THE ANNOUNCEMENT:
    [self="http://hiveworkshop.com/forums/announcement.php?f=283"]General Tutorial Submitting Rules and Guidelines - Read Before Posting![/self]

    • This was posted in the wrong forum.
    • The tread was posted twice.
    • The Hive Workshop already has a tutorial covering basic dialogs.
    • ~ Thread(s) merged and moved.
 
Top