Writing your own interactive fiction can be an enjoyable challenge. Three of the best authoring systems for IF are called Adrift, Quest, and Inform 7. All are free of charge, and this website offers tutorials for all three.
At this link, you’ll find an introduction to creating interactive fiction with Adrift. It’s in the format called .pdf, which helps to keep the indenting in order.