Hey, know-nothing dweeb stumbling in from /all here:
Are you talking about basically a Choose Your Own Adventure? I play a fair number of visual novels like that, and the most popular tool for them seems to be Ren'Py.
I don't know anything about programming, but I know it's Python-based, and you can do releases for Win/Mac/Linux and I think HTML5/web?