Hey, im having some problems finding how to overwrite multiple variables to 1 .bat file with mutiple lines. Basicly im making a small Rpg game and there is a few stats (e.g. strength, health, intellect) that i want to write to one file such as:
set strength=25
set health= 100
set intellect 50
within the main batch file im using the command echo set health=%health%>health.bat, but ideally i want to put all these variables into 1 file. This is where the problem comes in, any ideas how I would go about overwriting say the strength without affecting the others? I thought of using something like:
FOR /F "tokens=2 delims=," %%G IN (stats.bat) DO @echo %%G %%H
and having them laid out with in 1 line with commas separating each variable, but I still cant figure out how to use a command to overwrite the specific one needed and also set that variable into the main file (as I don't want to just echo it).
If there is any more information I have missed or if you need anything clarified just ask,
Thanks in advance.