SO i though of doing a Text RPG with ascii art, and i had a few questions.
1: for getting commands (eg. go south) how can i get the input of "go" to tell the game that the user wants to go somewhere, then the direction? My thought was something like this:
if (input == "go" && "south" or "north" or "east" or "west"){
so on
}
Something else is how can i store both parts of input as different var, so I can use them later?
You could also consider a while loop for your "go" since how I'd think of it is, you don't contemplate every step you take. You only think about something like an event, once you actually reach it.
It's like driving a car. In perfect conditions (and by that, I mean absolutely no traffic, just you and the beautiful road), you don't stop every time you step on the gas pedal. The only times you do stop or do something is when you meet up with an event, such as...a stop sign. Or a red light. Or deer running across the road. Maybe a cow is running straight at you. Stuff like that.