Dialog with a static image

  • #1, by snowMonday, 18. September 2017, 05:03 7 years ago
    Hi

    I have a scene which is simply a background, and a static image of a charactor.

    I would like to use the dialog system to have a conversation with this charactor image.

    There are no moving charactors in the scene.

    Here is a image of what I am trying to do:

    https://i.imgur.com/RgEYmfl.jpg

    What would be the best way to set this up ?

    Kind regards

    Newbie

    23 Posts


  • #2, by esmeraldaMonday, 18. September 2017, 09:09 7 years ago
    I can think of two solutions that should work:

    1. Create an invisible NPC (don't forget the font for that character) and set it somewhere in the scene. Let that NPC answer your questions.
    or
    2. Leave the input field "answer to dialog part" blank and only use the "execute action" where you could use the action part "display narration text" to show the answers.  
     

    Key Killer

    513 Posts

  • #3, by snowTuesday, 19. September 2017, 06:22 7 years ago
    Hi, thanks for the reply.

    With the invisible NPC option, how do I change to a scene that does not have an actice charactor ?

    The action part "change scene" needs a character to stand at position.

    https://i.imgur.com/DtWyM6r.jpg

    Kind regards


    Newbie

    23 Posts

  • #4, by esmeraldaTuesday, 19. September 2017, 10:20 7 years ago
    You could either create a blank active character (or a blank outfit of your existing character) and set it to a dummy object in the scene, or you could use "show scene/menu" instead of "change scene".

    Edit: I haven't tested if the dialog area of your active character shows up, if you show the scene instead of changing it.

    Edit2: just checked it, it works, dialog area shows up. But of course the part of the conversation of the active character doesn't show up, because it is not on the scene. If you want it to show (i.e. show again, because it is already in the dialog area), you should display it as narration text in the action part of the dialog or use the solution with the invisible outfit.

    Key Killer

    513 Posts

  • #5, by snowWednesday, 20. September 2017, 05:46 7 years ago
    Hi,

    I did manage to get this working following your suggestions.

    I used a blank outfit on actice player and black outfit on NPC. With this method, dialogs work like normal.

    I have made the dialog questions appear inside a box, using dialog area options

    Is there anyway to have all replies from active player and NPC to also appear inside the Dialog Area Box ?

    Thank you again
    Kind regards


    Newbie

    23 Posts

  • #6, by sebastianWednesday, 20. September 2017, 07:44 7 years ago
    yes, this is possible. See here:

    the textbox itself from the dialog options is only for the options. So you may need a text box image in your scene. 

    Thread Captain

    2346 Posts

  • #7, by snowWednesday, 20. September 2017, 10:06 7 years ago
    Thank you, the script worked for positioning the text.

    I was wondering, is it possible to resize scene object images within the scene ?

    https://i.imgur.com/YSVyNW0.gif

    Regards

    Newbie

    23 Posts

  • #8, by afrlmeWednesday, 20. September 2017, 13:50 7 years ago
    Not currently no, but you can scale them up in-game with Lua script.

    game.CurrentScene.SceneObjects["example"].ObjectScale = 1.5 -- scale is in decimal so 1 = 100%, 2 = 200%, 1.5 = 150%

    Imperator

    7278 Posts

  • #9, by snowThursday, 21. September 2017, 06:12 7 years ago
    Thanks AFRLme.

    Newbie

    23 Posts