I was just wondering if anyone here is familiar with BATCH as a programming language.
Yes, I know C++ is the way to go when programming, but I’ve always had a soft spot for BATCH and I enjoy going back into it sometimes.
Unfortunately, I have a problem that has plagued me far too long.
Does anyone know how one would block commands.
In other words let’s say this is my CMD game screen:
Welcome to the game.
Type “hi” to say hi.
Type “bye” to say bye.
In my current state, if I were to type “yes,” the game will just take that as the input, therefore bringing the player into the next screen as if they typed “hi.”
What I want to do is disable any other word inputs except for “hi” and “bye.” If the player were to type “yes” I would like an echo of “I do not understand.”