I am recommending you read the old 80s book"Write your own Adventure Programs for your Microcomputer" on the usborne website, it is a free (but hard to find) download and it is really short. The code won't run without changes on SmileBasic, but you only really need to look at how they structured the code. Map in an array, how the input is processed, that sort of thing.