Batch Files help?

Netherzapdos

Reputable
Oct 16, 2015
33
0
4,540
Back then i was making a text adventure game but i forgot that i needed like a save/load option so that theuser can start back where he left off, but the thing is i couldn't find one.

I'm watching tutorials that are compatible with RPG, it goes like this:

@echo off
set hp=2
set money=10
:home
echo YOUR HP IS %hp% AND YOUR MONEY IS %money%
pause
(
set /p hp=
set /p money=
)<savefile.dbl
goto home


and then use ">savefile.dbl" to load the game file


Instead of being a variable save, how can i save it so that when the savefile loads, it loads the user backonto the area where he left off?

I would really appreciate it if someone could help me here, thanks!
 
Solution
You need to add to your game a way to automatically go to a certain location. If you start the game without specifying a location it would assume you are starting a new game and start at the beginning. Otherwise it would jump to the part of the game for the specified location. Something like "mygame cliffs" to start playing at a cliff location.
Once you can start at any location you can add these locations to your save file.

mwryder55

Distinguished
You need to add to your game a way to automatically go to a certain location. If you start the game without specifying a location it would assume you are starting a new game and start at the beginning. Otherwise it would jump to the part of the game for the specified location. Something like "mygame cliffs" to start playing at a cliff location.
Once you can start at any location you can add these locations to your save file.
 
Solution