|- - for /f "tokens=2 delims=:" in "Saves\%fileTOload%.wssav" do ( - -|
for /f "tokens=2 delims=:" %%A in (Saves\%fileTOload%.wssav) do (
This won't be much use, however, since it only loads the last line in the "save" file into variable "loadvariable".
I think you would want something more like:
for /f "tokens=1.2 delims=:" %%A in (Saves\%fileTOload%.wssav) do set %%A=%%B
echo health is %health%
echo wealth is %wealth%
Assuming you have saved your data something like:
My suggestion is to tag your var.s so you can easily display them using SET:
to see all the tilde-tagged vars and their values.