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.