I'm making a game called "Super Tycoon Master" and I want a high score system. How would I list the score variables in an order that's similar to a high score system? I got that you would have to make the user input a name for the variable, and you would have to save it as a file for later loading. But how do I make this scoreboard? The only code that I know that would work (kinda) is:
set playcount=0
goto Boot_Up
It would then load playcount
from a .stmsave (.stmsave is really a .txt) file and it would read that and the goto
a frame where it interprets it, like:
:Super_Tycoon_Master
cls
if %playcount% equ 1 goto Setup_1
if %playcount% equ 2 goto Setup_2
if %playcount% equ 3 goto Setup_3
if %playcount% equ 4 goto Setup_4
if %playcount% equ 5 goto Setup_5
if %playcount% neq 1 goto Setup_1
Then the Setup
frames would be like this:
:Setup_1
echo Name your character.
set /p Name_1=
pause
goto Game_Start
Then the Scores
frame would be like this:
:Scores
cls
echo %Name_1%
echo %Name_2%
echo %Name_3%
echo %Name_4%
echo %Name_5%
pause
goto Menu
The only thing is, how do I order the echo
to make i look like the scores went lowest to the bottom and highest to the top? Any relevant help is appreciated!