I think Max is talking about the Z-Machine interpreter that Infocom created to make games like Zork and Hitchhiker's Guide to the Galaxy. There are many of modern ways to use it, like Inform (I recommend Inform 6 over 7), and even a web interpreter, Parchment.
That's if you want someone to PLAY the choice in the story. Which is slightly different from what you're talking about.
Yeah, the Z-Machine interpreter. But I think it is reasonable to look at choose your own adventure as a fairly straightforward game, so Z-code presumably provides the necessary features for it.
That's if you want someone to PLAY the choice in the story. Which is slightly different from what you're talking about.