I've been in the process of writing a Choose Your Own Adventure story, but I wanted it to be slightly more complex than just making a decision and then flipping to a page. Something like Karma checks or Perks that can effect what kind of paths you can choose, or are sometimes decided for you based on your Karma, and then the program takes you to the relevant part of the story.