Feature suggestion - Improved Variables

Discussion in 'Site Feedback' started by puppywhore, May 21, 2022.

  1. puppywhore

    puppywhore Virgin

    There are so many features of the conditional statements and score that so many people don't use. I find they make the foundation for some fantastic branching paths. However, in writing my own story I have found that I would love to be able to manipulate the customization variables through score.
    If a story has enabled both Customization and Score (or maybe even just Customization), then I believe that there should also be a Changes to Score check box when creating a new chapter. Preferably if the dropdown would list all customization variables instead of the author having to type them in.
    This would be useful for a multitude of stories. Transformation, or just identity loss springs to mind, however, plays with reality-warping or marriage to get a new last name will benefit from this as well.
     
  2. gene.sis

    gene.sis CHYOA Guru

    There is a subforum Suggestions to suggest features.

    If you have a gender transformation with a name change in mind, I can't imagine how you would change a typed-in name to a name of another gender.

    Though I guess you could just offer another customization variable for the other gender.

    If the reader's character can't remember their name and gets a new one, you could either offer another variable with a "preferred name" or use a fixed name if the character doesn't has a choice anyway.

    If they are supposed to get the last name of their spouse, it would be a fixed name anyway.
    (If there are multiple possible marriage candidates, you could use a numerical Game Mode variable in an if statement to get the right name.)
     
  3. puppywhore

    puppywhore Virgin

    Oh sorry about that. Not really on the Forums much. And yea, I know that there are plenty of workarounds, but since you are not able to have a variable with a string, this will lead to mounting if statements, especially in paragraphs of text. This is compounded by if statements not really working that well when you are viewing the story in something other than score mode.

    Example:
    The receptionist looks at you. "Can I get a name?" You nod. "Mr. {if married == true}Foo{endif}{if married == false}Bar{endif}"

    If someone is looking at the story and they are not in score mode the response will simply be "Mr. " since married has not been defined. And in just this short example the text becomes much more difficult to read.
     
  4. insertnamehere

    insertnamehere Really Really Experienced

    Code:
    The receptionist looks at you. "Can I get a name?" You nod. "Mr. {if married == true}Foo{else}Bar{endif}"
    
    will fix this (and is really the preferred way of structuring it anyway).
     
    gene.sis likes this.