I would research Arrays, and the Dictionary plugins.
scirra.com/manual/108/array
To load and save look into the WebStorage
scirra.com/manual/120/webstorage
Are you doing it 100% text input? If so you should look into Tokens and Regex in the tutorial section.
I was a big fan of text adventure games back in the 1980's.
Here are 3 of my all time favorites, some of the very first , and very best text adventure games. They are free games now, but I payed $30 a piece for them when they where new.
http://www.infocom-if.org/downloads/downloads.html
Zork was an awesome series!
here is a list of other infocom games:
infocom-if.org/games/games.html
They are a great place to strt if you are looking for inspiration and a great story at the same time.