Code: Select all
pushd "%temp%"
if exist "GSETS.db" (
FOR /F "tokens=1,2 delims==" %%A IN (GSETS.db) DO (
if "%%A" == "Level" set Level=%%B
if "%%A" == "Money" set Money=%%B
if "%%A" == "Nickname" set nickname=%%B
)
set FirstPlay=0
)
and then it detects if player has already played the game,and teleports him to level that is in GSETS.db with money and nickname that is located in that file 2.
I thought about using IF but i know only standard commands of batch,and i dont know how to create command like this.
Thanks in advance