Search found 19 matches

by CodingBear
21 Apr 2015 12:19
Forum: DOS Batch Forum
Topic: Leveling System is broken and IDK why
Replies: 3
Views: 2999

Re: Leveling System is broken and IDK why

Oh thanks I never caught that. I don't remember adding those
by CodingBear
20 Apr 2015 18:43
Forum: DOS Batch Forum
Topic: Leveling System is broken and IDK why
Replies: 3
Views: 2999

Leveling System is broken and IDK why

So my problem is that when I go through battle once everything works but when I try to do it again instead of going to battle it just goes to a level up screen. I have looked at the code for 30 mins or so and I can't find why the bug exists @echo off title Levels color 0a ::Variables set Playerhealt...
by CodingBear
17 Apr 2015 12:25
Forum: DOS Batch Forum
Topic: Having trouble entering input into a game and getting errors
Replies: 7
Views: 4969

Re: Hey Why is this not working

Squashman wrote:Put the number at the end of your variable name.

Thanks it works now:)
by CodingBear
16 Apr 2015 17:52
Forum: DOS Batch Forum
Topic: Having trouble entering input into a game and getting errors
Replies: 7
Views: 4969

Re: Hey Why is this not working

Hey guys thanks for all the suggestions but I figured it out :D

Code: Select all

if %swordstatus% == 1 echo 2) Stab it in the kidney
if not %swordstatus% == 1 echo 2) punch it in the kidney
by CodingBear
16 Apr 2015 17:48
Forum: DOS Batch Forum
Topic: Having trouble entering input into a game and getting errors
Replies: 7
Views: 4969

Re: Hey Why is this not working

Code: Select all

if +%swordstatus% EQU 1 echo. 2^) Stab it in the kidney ^|^| echo 2^) Punch it in the kidney


It didn't work :(
by CodingBear
16 Apr 2015 17:12
Forum: DOS Batch Forum
Topic: Having trouble entering input into a game and getting errors
Replies: 7
Views: 4969

Re: Hey Why is this not working

ok I'll have to try that thnx for the response why your here (hopefully) can you tell me whats wrong with this if %swordstatus% == 1 echo 2) Stab it in the kidney || echo 2) Punch it in the kidney It doesn't display anything I have also tried |, this is the whole code if you need to look at it @echo...
by CodingBear
16 Apr 2015 13:05
Forum: DOS Batch Forum
Topic: Having trouble entering input into a game and getting errors
Replies: 7
Views: 4969

Having trouble entering input into a game and getting errors

So I'm returning to batch and this code may be a bit dirty as it was written quickly but I'm trying to make a 2 player game and I don't know why the variable for name and health aren't displaying. On the play screen. Like I said its not very organized and kind of confusing cause I want the game to u...
by CodingBear
29 Dec 2014 09:48
Forum: DOS Batch Forum
Topic: Batch RPG Shop
Replies: 20
Views: 11199

Re: Batch RPG Shop

Ok I didn't mean to set a new variable (Health Limit thnx for the revision)
by CodingBear
28 Dec 2014 18:10
Forum: DOS Batch Forum
Topic: Batch RPG Shop
Replies: 20
Views: 11199

Batch RPG level up system

So I made a level up system and it works for the most part. It levels up with experience and changes the experiene limit and stuff but it doesnt upgrade damage or health. heres the code @echo off title Arena ::Stats set HP=100 set HPLimit=100 set OPHP=50 set DMG=10 set WepDMG=0 set HealthPots=0 set ...
by CodingBear
27 Dec 2014 17:50
Forum: DOS Batch Forum
Topic: Batch RPG Shop
Replies: 20
Views: 11199

Re: Batch RPG Shop

Ok I fixed it, sometimes I feel like an idiot lol I didnt add a pause or goto armory so thats why it didnt display anything and just went on with the script which explains moving to the insufficient funds
by CodingBear
27 Dec 2014 15:27
Forum: DOS Batch Forum
Topic: Batch RPG Shop
Replies: 20
Views: 11199

Re: Batch RPG Shop

I added the ping localhost code and the quotes but now when I try to buy anything it runs it
by CodingBear
27 Dec 2014 11:43
Forum: DOS Batch Forum
Topic: Batch RPG Shop
Replies: 20
Views: 11199

Re: Batch RPG Shop

Ok um everything is working except for this weird bug with buying health pots It runs the buy Health pot script but it also goes to the insufficient funds thing and doesn't echo that you bought it but you can still use it in battle :Armory cls echo Welcome to the Armory, here you can upgrade your ge...
by CodingBear
27 Dec 2014 11:21
Forum: DOS Batch Forum
Topic: Batch RPG Shop
Replies: 20
Views: 11199

Re: Batch RPG Shop

OMG thank you so much it works :D
by CodingBear
27 Dec 2014 10:50
Forum: DOS Batch Forum
Topic: Batch RPG Shop
Replies: 20
Views: 11199

Re: Batch RPG Shop

Thnx it works heres the code :BuyDagger cls if %Gold% lss 50 goto InsufficientFunds echo You bought a Dagger for 50 gold! set /a WepDMG=%WepDMG%+5 echo TotalDMG="%TotalDMG%" set /a TotalDMG= DMG + WepDMG echo TotalDMG="%TotalDMG%" pause goto Armory problem is it echos TotalDMG=10...
by CodingBear
27 Dec 2014 10:17
Forum: DOS Batch Forum
Topic: Batch RPG Shop
Replies: 20
Views: 11199

Re: Batch RPG Shop

It's still not working its not doing 15 dmg :evil: