|Reno is using the same basic moves I am, but with |
significantly more sophistication.
Rather then using ECHO to send each stat value to a text file
individually, he is using the SET command combined with a
known value for the first letter of the variable. Entering
...as in his example will produce the value of every variable
that starts with a $. (Read "set /?" for more info on why this
works)To clarify, you could get the same results if you called
your variables STAT_HP, STAT_GOLD, STAT_MANA and
...you would get a friendly list of every stat in one command.
By redirecting this output to a text file, as Reno has done,
you get all of your stats saved in one move.
Reading them back from this file involves a FOR loop...which
I'm still getting the hang of. However, the plaintext of his FOR
command is that for every line in "savegame.txt", run a SET
command with the value of that line. So if the first line is
$hitpoints=80, the command will output
...and then repeat the process for every line.
I hope this helps explain what Reno was talking about; If you
can get it going it's a very good solution to your problem.