Want to support CHYOA?
Disable your Ad Blocker! Thanks :)

Chapter 2 by Lake_Nine Lake_Nine

Sections

Loop Example

This is a example of a "**** Loop" basically a loop a reader HAS to go through is in a certain order. In this case it means you can only pick each option once and then you have to move on. It requires a value for each option which can become a lot of stuff quick. Also since you can't have hidden values it might not look great or kind of scare a user into thinking they fucked up.

Here is how it works:

On this first chapter I declare 3 values I will be using later for the conditions of option 1 and 2. These are "ExampleM" my counter which unlocks the end once every option has been done. "Sexy Option 1" which ensures that that option is only seen once and then there is a copy for option 2.

See the options for their conditions and value changes

Want to support CHYOA?
Disable your Ad Blocker! Thanks :)