Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Dialog with a static image

  • #1, by snow 9 years ago Zitieren
    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

  • #2, by esmeralda 9 years ago Zitieren
    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.  
     
  • #3, by snow 9 years ago Zitieren
    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


  • #4, by esmeralda 9 years ago Zitieren
    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.
  • #5, by snow 9 years ago Zitieren
    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


  • #6, by sebastian 9 years ago Zitieren
    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. 
  • #7, by snow 9 years ago Zitieren
    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
  • #8, by afrlme 9 years ago Zitieren
    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%

  • #9, by snow 9 years ago Zitieren
    Thanks AFRLme.