|I know this is a peculiar question, but here goes....|
I'm making a text game that will be constantly saving to "CurrentLevel.txt".
At the start menu, there is an option to lad your last save. The code i used is...
SET /p GAMESTATECODE= <CurrentLevel.txt
IF "%GAMESTATECODE%"=="%GAMESTATECODE%" GOTO %GAMESTATECODE%
This works except, if someone tries to cheat, and accidently changes their code to an invalid one, you get an error and it crashes.
I used someones save code from this forum, except I tweaked it.
The level codes will be the same as the labels.
Is there a way to create a label that will be whatever GAMESTATECODE is? Or send a message if the level code doesn't match any of my labels?
NOTE: I did this to avoid having a huge amount of IF commands as there will be a huge amount of saves.