Help with dialogs

  • #1, by DogghyWednesday, 17. October 2012, 01:54 10 years ago
    Hi fellas! I wanna be short and clear at explaining my problem:

    I have to create a scene where the player click one time on object (a door) and a message appear (ex: the door is locked), and then when he click it for the second time a dialogue appear (ex: do you wanna force the door? Yes/Nope). So: FIRST CLICK ON OBJECT - MESSAGE SECOND CLICK ON THE SAME OBJECT - DIALOGUE BOX WITH CHOISES

    I followed up this tutorial: http://www2.visionaire2d.net/glenfx/ but nothing good happens (obviously I'm doing something wrong). I can make message appear but not the dialogue box. Can someone explain me how to do this event correctly? Thank you and sorry for my bad english smile

    P.S. - It's a FIRST PERSON adventure game.

    Newbie

    0 Posts


  • #2, by afrlmeWednesday, 17. October 2012, 02:26 10 years ago
    you could use a single interface for it that you could call onto the screen with an action.

    using conditions or values & a yes/no image with a action area drawn around would work - well if you wanted to make a fancy custom looking box/scroll thingy-ma-jig wink

    & hmm does the message appear for force open door bit? did you set a condition or value to change when you clicked on the door the first time?

    ez smile

    Imperator

    7138 Posts

  • #3, by DogghyWednesday, 17. October 2012, 09:46 10 years ago
    Well, for the message (at the first click) I used a condition in the ACTION section of the scene object like this:

    SCENE -> OBJECT -> ACTION -> LEFT CLICK -> IF CONDITION "x" IS TRUE -> DISPLAY BACKGROUND SPEAKER TEXT "the door is locked!" -> END IF

    Do you suggest me to create a custom image for the dialogue box and put it like a scene object (also clickable image for the yes/no answer)?!

    Newbie

    0 Posts

  • #4, by NigecWednesday, 17. October 2012, 09:51 10 years ago
    do you have a character? check out this: https://dl.dropbox.com/u/26539256/Zep_VS2.zip Its a Myst still example Also this: https://dl.dropbox.com/u/26539256/herm.zip its a Monkey island type GUI but it does have dialog smile

    Key Killer

    593 Posts

  • #5, by DogghyWednesday, 17. October 2012, 10:11 10 years ago
    No, it's a first person adventure so the main character is invisible! Your demo (zeppelin) is very useful but there isn't a Q/A dialog inside and i need it! smile

    Well, maybe there's something helpful in the Monkey Island demo...let me try! At the moment, thanks for the help!

    Newbie

    0 Posts

  • #6, by NigecWednesday, 17. October 2012, 11:41 10 years ago
    You need a character, otherwise nothing displays, the character just needs to be the name, check the Zep demo, you need to assign interfaces to this character too

    Key Killer

    593 Posts

  • #7, by NigecWednesday, 17. October 2012, 13:01 10 years ago
    A simpler demo is this one which is a hidden objects game: https://dl.dropbox.com/u/26539256/vs/hidden.zip Its basically the Zep game but the turning system stripped out, but you still need the Controlable Character, this is basically all you need for a 1st person game

    Key Killer

    593 Posts

  • #8, by NigecWednesday, 17. October 2012, 13:57 10 years ago
    I've modified the above scene so it has 2 views, if you check the scene properties you'll see that you need to set a active character also in character properties you set the font to a outfit and interfaces, if you don't do this no text will display and interfaces wont work, you may not be able to switch rooms either. In the scene actions in "hidden" theres a short script that checks to see if all the objects are set to false, when everything is false it displays done and turns the objects off in the first scene, also switches exits

    Key Killer

    593 Posts

  • #9, by DogghyWednesday, 17. October 2012, 14:01 10 years ago
    Thank you for the help Nigec but maybe i am not able to explain myself good. I don't understand HOW to create a question/answer dialogue with my invisible character!

    I created a controlable character with no graphic (just one empty frame in front standing/animation), then I create a simple dialogue (on the same character). And now? How can I show up this dialogue on the door object? The dialogue should be like this:

    Question: Do you wanna force the door? Answer: Yes! (move to another scene) 2th Answer: No! (stay in the same scene)

    I don't wanna waste your time, I'm trying to be as clear as possible.

    EDIT - I'll take a look to your second demo

    Newbie

    0 Posts

  • #10, by NigecWednesday, 17. October 2012, 14:28 10 years ago
    The way to do it is to have the Door listed as a character so you can have a dialog with it, I'm just testing the theory now

    Key Killer

    593 Posts

  • #11, by DogghyWednesday, 17. October 2012, 14:45 10 years ago
    Thank you for your patience.

    Newbie

    0 Posts