Solved How to hide unwanted paths

March 5, 2015 at 22:55:43
Specs: Windows XP
I'm coding a basic RPG for test, and I wanted to know how to hide the game paths when I load the data, here's the code:
echo Loading...
set /p kills=%kills%
set /p deaths=%deaths%
set /p gold=%gold%
set /p exp=%exp%
set /p lvl=%lvl%
set /p hp=%hp%
set /p name=%name%
set /p exptill=%exptill%
)< Save.bat
goto game

Every time I run the game and load the file, it appears like this:

Name: name=biscuit

See More: How to hide unwanted paths

Report •

March 6, 2015 at 00:36:11
✔ Best Answer
It may help to know what's in Save.bat; or it may not.

And, I suppose the vars, like %lvl%, are set in a chunl of code you didn't show.


M2 Get custom script or take private lessons

Report •

March 6, 2015 at 02:51:40
Here's the save code:
echo Saving...
(echo kills=%kills%)> Save.bat
(echo deaths=%deaths%)>> Save.bat
(echo gold=%gold%)>> Save.bat
(echo exp=%exp%)>> Save.bat
(echo lvl=%lvl%)>> Save.bat
(echo hp=%hp%)>> Save.bat
(echo name=%name%)>> Save.bat
(echo exptill=%exptill%)>> Save.bat
goto game

EDIT: Added the variables set code, just in case:

set kills=0
set deaths=0
set gold=0
set exp=0
set lvl=0
set hp=100
set exptill=500

SOLVED: Had to remove the "variable=" in each

echo variable=%variable%

since it prints it out, kind of a stupid mistake but worth the time figuring it out.

message edited by Biscuit

Report •

Related Solutions

Ask Question