Story Loop example

Discussion in 'Authors' Hangout' started by Lake_Nine, Jul 25, 2016.

  1. Lake_Nine

    Lake_Nine Really Experienced

    I didn't see it in the main Chyoa guide so I made a quick example of how to loop a story with options that you can only choose once or where you can only choose a set number of options

    You can read it here

    The reason I did this is that it can cut down on the main failing of most stories on Chyoa which is dead ends.

    Post any questions and I will try and help you
     
  2. gene.sis

    gene.sis CHYOA Guru

    In this case it is not necessary to use 3 variables.

    ExampleM could be omited with following conditions:
    Code:
    Sexy Option 1:
    Conditions to view this chapter:
    "Sexy Option 1" = 0
    Changes to the score:
    "Sexy Option 1" + 1
    
    Sexy Option 2:
    Conditions to view this chapter:
    "Sexy Option 2" = 0
    Changes to the score:
    "Sexy Option 2" + 1
    
    End:
    Conditions to view this chapter:
    "Sexy Option 1" > 0
    "Sexy Option 2" > 0
     
  3. Javalar

    Javalar Really Experienced

    I already asked in the comment section of the story: Can we use this to show other uses of variables as well?

    Seems to me that a lot of people are still not really familiar with it.
     
  4. gene.sis

    gene.sis CHYOA Guru

    I think, the Chyoa Guide should be used to describe the functions and provide manuals. (The Chyoa Guide may need some revision)
    Beside that, it would be nice to have a thread with examples like the story started by Lake_Nine.
     
  5. Lake_Nine

    Lake_Nine Really Experienced

    You are correct, however it comes down to a matter of personal taste in things like this. I like having a counter variable so I just did it that way, more than one way to skin a cat though.
    That is what it is there for, I will approve anything as long as it is helpful
     
  6. Artican

    Artican Really Experienced CHYOA Backer

    So, what sort of story examples would this be applicable to?
     
  7. Lake_Nine

    Lake_Nine Really Experienced

    Lets say you want to set up a sex scene with lots of options to give the reader a feeling of agency, now you can make it so the story loops back on itself a bit better. You can also lock out or open up options later in a story based on earlier choices.
    My go to example of how best to use this is ass and titties, a true classic. A player could choose each in any order they wanted without having to go back to a previous chapter, or you could make it so they could choose only one.

    I asked for this type of system like a year or so ago and the amazing mods on this site added it in, so I felt I should help people understand the type of amazing new things that can be done with this. This system is applicable to any story you can come up with, you just have to build it right which can sometimes require a bit of planning.
     
  8. gene.sis

    gene.sis CHYOA Guru

    Another (more complex) example I tried a while ago:
    At the beginning the player is naked.
    In a chapter the player can choose from different pieces of clothing or click "I'm done".
    After each choice it loops back to the choosing chapter. Impossible choices won't be shown.
    If the player wears jeans, he can't choose panties afterwards.
    If the player wears a pantyhose, he can't choose stockings.
     
  9. Lake_Nine

    Lake_Nine Really Experienced

    Map all the options you want out. Then split it down into categories of stuff, so for example pants, shirt, shoes whatever. They have a controlling variable for each category. So you have a variable for pants and if it is checked or one or whatever you cannot choose any later options of clothes. You can also have a variable that shows what they are wearing although it won't do anything other than show the player what they have. It is kind of messy since you can't hide anything and it would be nearly impossible to then later in the story describe what the player had on without some sort of new system in chyoa. You could also tie stats to the clothes they chose so for example some more revealing clothes might open up new options later.

    I can build you an example if you want it
     
  10. Artican

    Artican Really Experienced CHYOA Backer

    So in this example, the story could prevent the reader from advancing the plot until they've gotten enough clothes? Like say, trying to enter a convenient store with no shirt or shoes?
     
  11. gene.sis

    gene.sis CHYOA Guru

    In this example you could leave the "wardrobe" naked...
    Let's say you (as a girl) get dressed, go to a party and dance with someone.
    You chose a jeans: He will grab your ass.
    You chose a dress or a skirt and panties (good girl): He lifts your dress/skirt and grabs your ass.
    You chose a dress or a skirt without panties (slutty girl): He lifts your skirt/dress, expose your ass and let his finger slide between your ass cheeks.
     
  12. Lake_Nine

    Lake_Nine Really Experienced

    Correct, or even as gene.sis shows you can have it affect later options
     
  13. Artican

    Artican Really Experienced CHYOA Backer

    I'd like to try out a story like this, only I don't follow the steps to set it up.