Okay. Thanks to my other thread I have started to use cases alot more than before. But I have yet another question. I am making a text adventure game. And use cases for the commands. But whenever the player enters an invalid command it just closes the program. So my question is. How can I make it so if a player does not use a valid entry it just returns them to the top of the case list or something simaliar? Sorry if this is confusing...But I think you get the idea. I tried else case but it wouldn't work...maybe I just didn't use it right or something. Any help here?



LinkBack URL
About LinkBacks
. I tried else case but it wouldn't work...maybe I just didn't use it right or something. Any help here? 



) but doesn't show that the default case element must re-prompt the player or else the execution will result in an infinite loop. (Very minor issue, but, once again, you could end up with a fair amount of useless text on the screen.)