Search found 4 matches

by EliJamesMorey
15 Feb 2019 13:39
Forum: DOS Batch Forum
Topic: Save/Load null variables
Replies: 3
Views: 3793

Save/Load null variables

Is there any way to save null variables I have been saving and loading variables using. ( echo %variable% echo %variable2% echo %variable3% )>save.sav and ( set /p variable= set /p variable2= set /p variable3= )<save.sav This works fine, except that some variables are null (and I would like to keep ...
by EliJamesMorey
01 Feb 2019 11:27
Forum: DOS Batch Forum
Topic: General advice on prototype for a game
Replies: 1
Views: 2146

General advice on prototype for a game

So I have been working on this prototype of a text-based game in batch, and because I have never done any type of coding before, I am sure that this is really chunky, inefficient, and sometimes just stupid code, but I don't really know what I can do better. If anyone has any general advice about how...
by EliJamesMorey
22 Jan 2019 17:56
Forum: DOS Batch Forum
Topic: Numbers in batch game code not making sense
Replies: 3
Views: 3812

Re: Numbers in batch game code not making sense

Thank you so much shadow thief! It's great to know that, that is going to save me a lot of pain in the future.
by EliJamesMorey
22 Jan 2019 16:08
Forum: DOS Batch Forum
Topic: Numbers in batch game code not making sense
Replies: 3
Views: 3812

Numbers in batch game code not making sense

I am having trouble with this line in a game that I am making. It is pretty simple, but for some reason the numbers aren't adding up. if "%storval9%" == "0" if "%c%" == "1" if "%keyval2%" == "0" echo. if "%storval9%" == "0" if "%c%" == "1" if "%keyval2%" == "0" echo This chest is locked, and you do ...