@echo off
@Title Game
:r
set /p name=<GameName.txt
set /p money=<GameMoney.txt
set /p lvl=<GameLvl.txt
set /p store=<GameStore.txt
set /p storeM=<GameStoreMoney.txt
set /p storeNL=<GameStoreNL.txt
set /p storeB=<GameStoreB.txt
set /p Max=<GameMax.txt
set /p ResLvl=<GameReslvl.txt
set /p ResGive=<GameResGive.txt
set /p ResB=<GameResB.txt
set /p ResNL=<GameResNL.txt
:m1
Echo.
Echo #************************************#
Echo * Menu *
Echo *------------------------------------*
Echo * Profile: 1 *
Echo * Shop: 2 *
Echo * Restoran: 3 *
Echo #************************************#
set /p var="Enter: "
if "%var%"=="1" goto 1
if "%var%"=="2" goto 2
if "%var%"=="3" goto 3
cls
goto m1
:1
cls
Echo ______________________________________________________________________
Echo Profile:
Echo Money: %money%
Echo Lvl: %lvl%
Echo Name: %name%
Echo ------Store------
Echo Store lvl: %store%
Echo Give money: %storeM%
Echo -----Restoran----
Echo lvl: %ResLvl%
Echo Give money: %ResGive%
Echo ______________________________________________________________________
goto m1
:2
if "%store%"=="%Max%" goto Max
goto Shopp
:Shopp
cls
Echo ______________________________________________________________________
Echo Shop:
Echo Update your store?
Echo %store% -> %storeNL%
Echo Money:%storeB%
set /p Shop2="Enter: "
if "%Shop2%"=="+" goto YesShop
if "%Shop2%"=="-" goto NoShop
cls
Echo ______________________________________________________________________
:YesShop
cls
if "%money%" GEQ "%storeB%" goto Yes
if "%money%"=="%storeB%" goto Yes
goto No
:NoShop
cls
goto m1
:Yes
@set /a money=%money% - %storeB%
@set /a store=%store% + 001
@set /a storeB=%storeB% + %storeB%
@set /a storeM=%storeM% + %storeM%
@echo %storeM%>GameStoreMoney.txt
if "%money%" GEQ 0 goto a
if "%money%" GEQ 10 goto b
cls
goto c
:a
@echo 00%store%>GameStore.txt
@echo %storeB%>GameStoreB.txt
@echo 000%money%>GameMoney.txt
goto r
:b
@echo 00%store%>GameStore.txt
@echo %storeB%>GameStoreB.txt
@echo %money%>GameMoney.txt
goto r
:c
@echo %money%>GameMoney.txt
@echo 00%store%>GameStore.txt
@echo %storeB%>GameStoreB.txt
goto r
:No
cls
Echo No Money
goto m1
:Max
cls
Echo Max lvl
goto m1
#Restoran
:3
Start Restoran.bat
exit
