1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Multi character Dialogue?

Discussion in 'Dialogue' started by happenchance, Feb 13, 2013.

  1. happenchance

    happenchance Potential Patron

    Joined:
    Feb 13, 2013
    Messages:
    9
    Likes Received:
    0
    I have been looking around the threads here as a guest for some time and thought of trying my hand at some dialogue.

    My question is this: is there a way to make the dialogue engine choose a character randomly (i.e. Sister, friend, sister's friend, etc.) and it stay with that character through the entire run? Then when you re-run the game it can randomly choose a character again?

    would love some help with how to code that.

    My reason for asking is that it would get really tedious having to move those dashes around to the right places.


    I guess what I am looking for is how to create a multi-Scenario coding and making it stick to the scenario it chooses?
     
  2. happenchance

    happenchance Potential Patron

    Joined:
    Feb 13, 2013
    Messages:
    9
    Likes Received:
    0
    I will have an example of what I am trying to do as soon as I can.
     
  3. Pim_gd

    Pim_gd Swell Supporter

    Joined:
    Jan 25, 2013
    Messages:
    717
    Likes Received:
    45
    Yes.

    Exact formatting is unknown to me, but here's the logic behind it:
    1: You can assign values to variables when a line of dialogue is displayed.
    2: It's possible to add a condition to a line of dialogue to prevent it from playing if a certain condition isn't met.
    3: It's possible to play one of a list of lines.

    Thus:
    intro: (if chartype = "") [intro1]
    intro1: chartype = "Sister"
    intro1: chartype = "Mother"
    intro1: chartype = "Niece"

    You'll have to look up the exact syntax yourself.
     
  4. happenchance

    happenchance Potential Patron

    Joined:
    Feb 13, 2013
    Messages:
    9
    Likes Received:
    0
    Awesome! that right there helped me a great deal. thank you very much!
     
  5. happenchance

    happenchance Potential Patron

    Joined:
    Feb 13, 2013
    Messages:
    9
    Likes Received:
    0
    a BIG shout out to Kasamaz and his work on "Daughter's Friend"! if it were not for his works I would not have found out how to do make a multi scenario piece. Unfortunately, there will be way to much coding for what I want to do with it (slowing the game mostly) that I have decided to chop it up into a series. It'll be coming soon and hopefully entice you to do the same. lol