Search found 5 matches

by chronogod
18 May 2017 16:33
Forum: DOS Batch Forum
Topic: weird if problem
Replies: 4
Views: 3968

Re: weird if problem

thanks guys, it works now!!! this is the code for the screen, just in case you want it @echo off title screen setlocal enableExtensions :one timeout /t 1 >nul for %%G in (1,2,3,4,5,6,7,8,9,10) do ( for %%H in (1,2,3,4,5,6,7,8,9,10) do ( set /p a%%G'%%H=<"%%G'%%H.txt" ) ) :two cls echo %a1'...
by chronogod
18 May 2017 15:06
Forum: DOS Batch Forum
Topic: weird if problem
Replies: 4
Views: 3968

weird if problem

I'm creating a program that makes characters randomly turn into others, and I've run into a pretty weird problem. In :main, I have a series of if statements within a for loop within a for loop, that's causing the program not run the for loops and crash. I don't really understand why the problem is t...
by chronogod
01 May 2017 21:12
Forum: DOS Batch Forum
Topic: error writing to file
Replies: 4
Views: 3768

Re: error writing to file

alright, I got everything working. Thanks for the help guys
by chronogod
30 Apr 2017 08:18
Forum: DOS Batch Forum
Topic: error writing to file
Replies: 4
Views: 3768

Re: error writing to file

I think that the code's working but I got another problem now. I think that the problem is that I can't use a space (in movementlog) when writing characters to cx.txt and cy.txt. I'm pretty sure this is the issue because the charreg is writing %char% to 3.txt or b.txt depending on which direction I ...
by chronogod
29 Apr 2017 13:35
Forum: DOS Batch Forum
Topic: error writing to file
Replies: 4
Views: 3768

error writing to file

Basically what I'm doing is making a demo game using batch. What's happening is that instead of writing the %char% to lets say "b3.txt" it will write it to "b3" as a plain file. Could someone help explain why this is happening and what I can do to sove this? title charreg set /p ...