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
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
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.
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.
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
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.
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.
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
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?
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.