Hi Ranger77,
nice work
I have some suggestions:
You should use functions for code that you need to use more than once.
Like saving the data should be a function, like
Code: Select all
:sheep
call :saveData
...
:spinningwheel
call :saveData
....
:saveData
(
echo %ironbars%
echo %goldbars%
echo %greenbars%
echo %redbars%
...
echo %ll%
) > "%appdata%\Swords of Morovaith.dll"
exit /b
And also for progress bars like "spinning", "cooking", "loading" and so on
Code: Select all
call :progress "You construct a Castle" 3
...
call :progress "Cooking" 3
call :progress "Loading" 6
:progress
setlocal EnableDelayedExpansion
set "dots=."
for /L %%n in (1,1,%2) do (
cls
echo %~1!dots!
set "dots=!dots!."
timeout /nobreak /t 1 >nul
)
endlocal
exit /b
This would save a lot of code and time for you.
jeb