Globally you need to use the Text plugin to display the situation and the result of your action, the textbox plugin to input the actions, the array plugin to store all your text "database" and the webstorage plugin to store some informations about progression and your player locally.
A tutorial specificaly about text games hasn't been achieved, but you can find hopefully helpful examples and explanations of use of the arrays and webstorage in the How do I FAQ under the sections "Arrays", "Webstorage" but also "RPG genre" (especially the "Dialog" type examples).
I hope this gets you on track.