I am trying to make a game with a level selection. If you can't find a solution, can you just make me a new level selection? Anyways, my problem is, I am making the player choose between levels by typing either level 0, "tutorial" level 1, level 2 and level 3. Every time I try to think of a solution I hurt my head. I'm only 11 so that's not a surprise. Here is the code that I need help with:
echo what level do you want?
echo (must have unlocked previous level to play the next)
echo.
echo.
echo tutorial ( lvl0 )
echo lvl1
echo lvl2
echo lvl3
set /p level=enter lvl here:
if level=lvl0 goto let
if level not =lvl1 goto le1
if level not =lvl2 goto le2
if level not =lvl3 goto le3
I also want to make sure that they can't go in level 1 until the tutorial is complete, can't enter level 2 until level 1 is complete and so on. How I am going to get out of this? If you need to ask questions to answer this one, ask it in the comments and I will reply. Anyways, I have another question and don't want to wait 90 minutes to post it.
Is there a way of opening a batch file IN a batch file?
I know, it's simple. But can you open it inside of a second window?
This is for the game I mentioned earlier. If I can't, it will ruin a game-play mechanic I wanted to put in the game. Here is how I opened up in the SAME window.
echo calling hack services...
call C:\Users\%username%\searches\matrix.bat