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

Problems with Value

Discussion in 'Help' started by SDT-FAN, Aug 25, 2013.

  1. SDT-FAN

    SDT-FAN Potential Patron

    Joined:
    Dec 14, 2012
    Messages:
    41
    Likes Received:
    0
    I try to explain as short as possible this.

    initial_settings:{"ral":1}
    general:"[gene*ral*]"
    gene1:"Sentence one"
    restart:"*FINISHES*"
    finish1:"[FT]"
    FT:"Finish Text"{"set":{"ral":2}}
    gene2:"Sentence two"

    The log shows changes in value. However, the second sentence is showing blank. sometimes ...

    Edit: corrected The double quotes on set ...
     
  2. Pim_gd

    Pim_gd Swell Supporter

    Joined:
    Jan 25, 2013
    Messages:
    721
    Likes Received:
    50
    Oooh, it's a puzzle!

    DialogueChecker is your friend, you know.
    I have to say I spotted the mistake myself, prior to reaching for the checker.
    Probable improper use of set attribute on line 6, col 17 near "(...) Text"{set:{"ral":2}}"
    Wrap set in double quotes, like so: "set":
    Line 6: FT:"Finish Text"{set:{"ral":2}}

    Failed to properly parse line-attributes for line 6, parsing stopped at col -1 (ERROR) at ",set:{"ral":2}}"
    It seems you made improper use of a line-attribute. The set line-attribute has to be surrounded with double-quotes, like so: "set"
    Line 6: FT:"Finish Text"{set:{"ral":2}}
    Your set line-attribute is broken due to improper syntax. As for the changes in value - I don't see those here, except "storing ral = 1".

    Did this not solve your problem? Post the full dialogue and I'll help you sort it out.
     
  3. SDT-FAN

    SDT-FAN Potential Patron

    Joined:
    Dec 14, 2012
    Messages:
    41
    Likes Received:
    0
    Thank you for the sarcasm, I use your tool very often, thanks for that, but here I just forgot double quotes.
    :P
    Wich improper syntax now? ... You dont mean the forgotten double quotes?!
     
  4. Pim_gd

    Pim_gd Swell Supporter

    Joined:
    Jan 25, 2013
    Messages:
    721
    Likes Received:
    50
    I actually like puzzles.
    ...
    Is it still broken?

    If so, mind posting a log where you encountered empty lines?
     
  5. SDT-FAN

    SDT-FAN Potential Patron

    Joined:
    Dec 14, 2012
    Messages:
    41
    Likes Received:
    0
    Maybe there was a Problem with a {"mood"} Syntax. Because after removing these it works ....
     
  6. Pim_gd

    Pim_gd Swell Supporter

    Joined:
    Jan 25, 2013
    Messages:
    721
    Likes Received:
    50
    Hang on.
    I don't see these in your example. Mind posting your full dialogue? That way I'll be able to tell you what went wrong. If you're concerned about releasing a work-in-progress you can PM me.
     
  7. SDT-FAN

    SDT-FAN Potential Patron

    Joined:
    Dec 14, 2012
    Messages:
    41
    Likes Received:
    0
    dialogue_name:"TEST"
    DEFAULT:
    all:"CLEAR"
    CUSTOM:
    initial_settings:{"ral":1}
    general:"[gene*ral*]"
    gene1:"Sentence one"{"mood":"Normal"}
    cum_on_face:"CUM ON FACE"
    restart:"*FINISHES*"
    finish1:"The ...[FT]"
    FT:"Finish Text"{"set":{"ral":2}}
    gene2:"Sentence two"{"mood":"Happy"}

    0: Loading custom dialogue.
    ------------------------------
    1: Reading initial settings.
    2: Okay.
    3: Storing ral = 1
    4: Adding custom line: "CUM ON FACE"
    5: Adding custom line: "[gene*ral*]"
    6: Adding custom line: "Sentence two"
    7: Adding custom line: "*FINISHES*"
    8: Adding custom line: "Sentence one"
    9: Adding custom line: "Finish Text"
    10: Done.
    ------------------------------
    11: Playing line "[gene*ral*]"
    12: Playing line "Sentence one"
    13: Playing line "CUM ON FACE"
    14: Playing line "*FINISHES*"
    15: Playing line "Finish Text"
    16: Storing ral = 2
    17: Playing line "[gene*ral*]"
    18: Playing line "[gene*ral*]"
    19: Playing line "[gene*ral*]"
    *Manual Change Mood to Happy*
    20: Playing line "[gene*ral*]"
    21: Playing line "Sentence two"
    Jap it was the Mood Syntax, i could not get it in my own Dialogue but i could reproduce it here.
     
  8. T0mcat

    T0mcat Avid Affiliate

    Joined:
    Feb 5, 2012
    Messages:
    263
    Likes Received:
    2
    @SDT-FAN - see PM

    @general

    Using lines said by HER as important triggerlines is dangerous, when her mouth is full.. So if you want some action to set a variable to change something in the flow of a dialogue, always use it with thought or him style.

    Using restart can be a problem, as it isn't always triggered correctly. Even swallow sometimes triggers more or less often than one would expect.
     
  9. SDT-FAN

    SDT-FAN Potential Patron

    Joined:
    Dec 14, 2012
    Messages:
    41
    Likes Received:
    0
    @T0mcat - see PM

    @general

    Actually, I am more of a consumer as an artist. But I like to share my evidence emerges with the technical intricacies of the dialogue system.