Search found 8 matches

by Mattis95
24 Feb 2012 10:08
Forum: DOS Batch Forum
Topic: 50%
Replies: 6
Views: 7555

Re: 50%

Aacini wrote:@Mattis95: May I suggest you to post better/clearer topic titles for your questions? :wink:

Regards...

Yea, maybe I should have called it... "Add 50% of itself to itself"?
by Mattis95
23 Feb 2012 08:03
Forum: DOS Batch Forum
Topic: 50%
Replies: 6
Views: 7555

Re: 50%

Ed Dyreen wrote:'

Code: Select all

set "hi=60"
set /a hi /= 2

It worked, but if I want to add 50% of %hi% to %hi%?
by Mattis95
23 Feb 2012 07:56
Forum: DOS Batch Forum
Topic: 50%
Replies: 6
Views: 7555

50%

I want to create a variable, then remove/add 50% of itself to itself, I thought it should work with this, but it doesn't:

Code: Select all

set hi=60
set /a hi=%hi% * 0.5

Why doesn't it work and how can I make it work?
by Mattis95
07 Feb 2012 08:02
Forum: DOS Batch Forum
Topic: fight.bat
Replies: 4
Views: 4685

Re: fight.bat

Thanks, jeb! That did the trick.
by Mattis95
05 Feb 2012 00:54
Forum: DOS Batch Forum
Topic: fight.bat
Replies: 4
Views: 4685

Re: fight.bat

When I try to load the game, it says something like "unexpected goto" and exits. I tried to find where the problem was, and found that it didn't really be in the load part of the file. (Maybe it is, but not what I can see) And therefore I thought you may need the whole game. Also, I though...
by Mattis95
04 Feb 2012 06:35
Forum: DOS Batch Forum
Topic: fight.bat
Replies: 4
Views: 4685

fight.bat

Hello! Now, I've made a kind of fight simulator in batch, but somehow, the save function doesn't work. Or, it does. But load fails... I can't just send the load part of the file, because it's something else... Therefore, I've uploaded it at MediaFire, here: m If you know what's wrong, please let me ...
by Mattis95
13 Jan 2012 10:35
Forum: DOS Batch Forum
Topic: It's a little bit failing fight simulator.
Replies: 4
Views: 4205

Re: It's a little bit failing fight simulator.

Thanks! I have no idea how I could miss that... But it helped and got it working!
by Mattis95
12 Jan 2012 13:12
Forum: DOS Batch Forum
Topic: It's a little bit failing fight simulator.
Replies: 4
Views: 4205

It's a little bit failing fight simulator.

Ok, I have made a some-kind-of fight simulator. But when going from attack phase or defend phase, it says something about an - that shouldn't be there. But the thing is, I don't have any - on any place where it shouldn't be. If someone could see what the problem is, please tell me! And this is just ...