• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Snow4Life's Dialog Tutorial

Level 7
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:
  • 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)
To make things happen when you click a button.
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 ...
  • 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... >_>
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 :D
 
Last edited:
  • Like
Reactions: Eae
Level 24
Joined
Feb 28, 2007
Messages
3,480
Please use the

etc. tags for headers and so.
Furthermore, you are telling people how to do working dialogs, but that's it. You are not explaining what the different triggers do or how they work/function at all. A tutorial is about teaching someone how to do something, not to do their work for them, if you understand what I'm saying. My advice is to add some explanations and so that explains (in detail) what the different events, conditions and actions do. Finally, I believe there already is a good dialog tutorial in the database, so I don't see why one more would really be needed.

 
Level 7
Joined
Mar 29, 2009
Messages
139
ok... i understand that i should maybe do it more detailed!
but, i registered some days ago and i can't know there is another dialog tutorial that was made before this, so SORRY for trying to help people.... and it may be people that doesn't find the other tutorials -.-

And people that may be ''noobs'' that don't even know how to search could find this instead.
 
Last edited:
Level 24
Joined
Feb 28, 2007
Messages
3,480
Did you ignore this part?
"Please use the

etc. tags for headings and sub-headings."


And about your whine regarding that people wouldn't be able to find the other dialog tutorial: If they were incapable of finding that one, why would they suddenly be capable of finding this one?

 
Level 7
Joined
Mar 29, 2009
Messages
139
k, sry... stupid tutorial anyway
How to remove it? People should not learn from stupid tutorials like this.
Just came from my mind, and yes, i bet there are other and better tutorials.

And i what is h1 and h2? -.-

Any1... plz remove this crap.
 
Last edited:
Top