1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Basics of a Dialog

Discussion in '"Graveyard"' started by Orc_Tamer, Jul 1, 2006.

  1. Basics of a Dialog

    by ragingspeedhorn & Orc_Tamer


    Note: In this tutorial we will show you how you create a simple multiply choice dialog for 1 player. Keep in mind that this is directed towards the beginners within the Trigger Editor and is in no way meant to teach the experienced modders anything that they probably didn't knew already.



    1) What is a dialog?

    A "Dialog" is a litle window that pops up which contains some buttons that you can click. An example of what a Dialog can be used for is a simple thing like if you would like to have a 100 gold. Instead of having the choice based on chat commands where you write -yes or -no it is (and looks) better to have a Dialog window apearing asking you if you would like to have a 100 gold and then having 2 buttons which says "Yes" or "No". We will now show you how you make a Dialog like I just told you about in the simpliest way (that we know of).


    2) Getting Started.

    To get started you should (ofcourse) open up the World Editor and enter the Trigger Editor (Hotkey for it is F4), the icon for it is located inbetween the Terrain Editor & the Sound Editor.

    [​IMG]


    3) Creating The Variables.

    Once you entered the Trigger Editor the first thing to do is finding the Variable Editor (Hotkey for it is Ctrl+B), the icon for it is located to the left of the New Category icon.



    When you are inside the Variable Editor you click on the green x with a + infront of it [​IMG] to create a new variable, then you make the two variables needed for the Dialog as shown below.

    [​IMG]


    4) Creating The Dialog Window.

    Once you made your two variables you can start with the actual triggers for getting the Dialog Window to apear.

    First you create a new trigger and do as shown below.

    • The Dialog Window
      • Events
        • Time - Elapsed game time is 1.00 seconds
      • Conditions
        • None
      • Actions
        • Dialog - Clear MyDialog
        • Dialog - Change the title of MyDialog to Do you want a 100 gold?
        • Dialog - Create a dialog button for MyDialog labelled Yes
        • Set DialogButton[1] = (Last created dialog Button)
        • Dialog - Create a dialog button for MyDialog labelled No
        • Set DialogButton[2] = (Last created dialog Button)
        • Dialog - Show MyDialog for Player 1 (Red)


    Once this is done the Dialog will apear perfectly but there will be no effect when clicking the buttons.


    5) Creating The Buttons.

    To make the buttons actually do something you create two triggers as shown below.

    • Yes Button
      • Events
        • Dialog - A dialog button is clicked for MyDialog
      • Conditions
        • (Clicked dialog button) Equal to DialogButton[1]
      • Actions
        • Player - Add 100 to Player 1 (Red) Current gold
        • Game - Display to Player Group - Player 1 (Red) the text: You have recieved 100 gold


    • No Button
      • Events
        • Dialog - A dialog button is clicked for MyDialog
      • Conditions
        • (Clicked dialog button) Equal to DialogButton[2]
      • Actions
        • Game - Display to Player Group - Player 1 (Red) the text: You didn't want any gold


    Once these two triggers have been made your Dialog should work and look like shown below.

    [​IMG]
     
    Last edited by a moderator: Mar 6, 2007
  2. Wolverabid

    Wolverabid

    Joined:
    Oct 23, 2006
    Messages:
    8,302
    Resources:
    5
    Tutorials:
    5
    Resources:
    5
    Tutorial Moved

    Orc_Tamer; sorry m8 I had to move ths tut back to » Tutorial Submission « because of the provision:
    The images need to be physically attached to the post so that they are not dependant upon imageshack.

    Thanks.
     
  3. ragingspeedhorn

    ragingspeedhorn

    Joined:
    Apr 30, 2005
    Messages:
    6,521
    Resources:
    14
    Icons:
    5
    Maps:
    7
    Tutorials:
    2
    Resources:
    14
    Old tutorial, submitted twice (atleast I think so) by both me and Orc_Tamer. The other ver by me should be setted up a bit better and contain all the pictures, not attached though, but you could always do that yourself as you are the mod and the tutorials were here before the rule were inforced.
     
  4. Orc_Tamer

    Orc_Tamer

    Joined:
    Jan 5, 2007
    Messages:
    41
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    Well... I can't attach them since I can't edit that tutorial. For some reason my ol d tutorials are submitted by a guest named liked me.
     
  5. Wolverabid

    Wolverabid

    Joined:
    Oct 23, 2006
    Messages:
    8,302
    Resources:
    5
    Tutorials:
    5
    Resources:
    5
    Bloody Bug

    I will deal with it for you guys.

    [off-topic] What happened to your waykewl hackbot Orc_Tamer?

    *edit* There is a BIG problem with this thread! I can't edit that tutorial either!

    Orc_Tamer: I will cnp the post and send it to you in a PM. You can then cnp the thing right back into a brand new thread and we'll go from there.
     
    Last edited: Mar 6, 2007
  6. HappyTauren

    HappyTauren

    Joined:
    Nov 3, 2006
    Messages:
    8,412
    Resources:
    87
    Models:
    61
    Icons:
    23
    Packs:
    1
    Tutorials:
    2
    Resources:
    87
    it is cause of merge. then he started using wc3sear account and this account = null
     
  7. Orc_Tamer

    Orc_Tamer

    Joined:
    Jan 5, 2007
    Messages:
    41
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    [off-topic] Its there just the link..[/off-topic]

    I will make the new thread..

    -Orc_Tamer
     
  8. Wolverabid

    Wolverabid

    Joined:
    Oct 23, 2006
    Messages:
    8,302
    Resources:
    5
    Tutorials:
    5
    Resources:
    5
    Buggy Thread

    This version of the dialog tutorial is being sent to the graveyard.

    ~ Thread moved.