A question about text games
Heya,
I have a question about text games. Say, I give a player 4 options to choose from for directions to travel, then I display some tet with info about the terrain, as well as enemies.
How would(can) I make it so, that say, the game records which town/part of the map the player is, and responds with the appropriate text, and gives choices of places to go, without having to do the same thing for each of the every towns.
I was thinking of a loop, but dont have an idea of what type.