How to make a game like “Zork”?

If you don’t know what “Zork” is, it is an old 70’s text based video game.

Anyway, I want to make a text based game, where a prompt is issued, and you put in a command. And another prompt is issued. But I do not know how to start it off. Can anyone help? Or have similar coding ideas?

I tried this: How To Make A Text Adventure Game In Roblox - YouTube, but it is does not support my full intentions.

Can anyone help?