How To Make A Cmd Game
Uploader Comments (vjromeguy)
All Comments (36)
-
@DrSuperMarioMan6464 Yes, the echo command can be used as such: echo set a=%a%>savefile.bat echo call game.bat>>savefile.bat However, if the variable is a number less than ten, then it will not work so a solution is this: set /a a=%a%+10 echo set a=%a%>savefile.bat echo call game.bat>>savefile.bat set /a a=%a%-10 When the game loads the save file, use this code: if defined a ( set /a a=%a%-10 goto %a% ) if exist savefile.bat ( call savefile.bat ) PM me for more help. :D
-
hey!!! where would i save it????? by the way thx
-
can i use microsoft word to set it up and then save to desktop as .bat?
-
@369brad thats normal
-
Creative - I've written some crazy batch files in my day ;) these days, systems admins seem to be blown away with simple command line stuff that worked way back in the dos days!
-
the code dont work on my computer unless i put some pauses before exit lol
-
@DrSuperMarioMan6464 you can do this write this code:
echo somthing>somthing.txt
IF EXIST somthing.txt (
goto level2
) ELSE (goto level1)
-
ok thats stupid
-
Thanks. So im a freshmen in highschool and my older brother just went to georgia tech for computer science. He made a pig latin translator if you would be interested in trying that. Good video tho!
No I mean is it possible to save and load a file in your game so you don't have to start over each time?
DrSuperMarioMan6464 1 year ago
@DrSuperMarioMan6464 I am not sure you would have to look it up in another video... sorry I can not help you on this but I try to look for you.
vjromeguy 1 year ago
@vjromeguy thanks anyway dude
DrSuperMarioMan6464 1 year ago
@DrSuperMarioMan6464 no problem
vjromeguy 1 year ago
How do you make a save file?
DrSuperMarioMan6464 1 year ago
@DrSuperMarioMan6464 save it on desktop as an .bat file
vjromeguy 1 year ago