Search found 3 matches

by KingIsulgard
29 Jul 2011 13:35
Forum: DOS Batch Forum
Topic: Variable doesn't get overwritten
Replies: 4
Views: 4616

Re: Variable doesn't get overwritten

Yes that does work!

Thanks for the information.
by KingIsulgard
29 Jul 2011 12:16
Forum: DOS Batch Forum
Topic: Variable doesn't get overwritten
Replies: 4
Views: 4616

Re: Variable doesn't get overwritten

The weird thing is, it works the first time. And it keeps working in that section. But it doesn't in another section. I'll post the code, but hold one because it's very very long already . Well not extremely long, but long enough to get confusing. :: Created by Gilles Lesire :: Copy, reproduce and e...
by KingIsulgard
29 Jul 2011 08:21
Forum: DOS Batch Forum
Topic: Variable doesn't get overwritten
Replies: 4
Views: 4616

Variable doesn't get overwritten

Hi, I'm busy writing a small RPG game in batch just to lean BATCH scripting a bit more. But now I have a annoying problem that a variable stays kinda "local". I have a function to create random numbers. :RandomNumber SET /a ValRange=%2-%1+1 SET /a RND=((%random%/3) %% %ValRange%)+%1 GOTO:E...