Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Signup for Free!
-More Features-
-Far Less Ads-
About   Users   Help
Users & Guests Online
On Page: 1
Directory: 1 & 104
Entire Site: 8 & 916
Page Staff: pokemon x, pennylessz, Barathemos, tgags123, alexanyways, supercool22, RavusRat,
04-23-24 07:09 PM

Thread Information

Views
501
Replies
0
Rating
0
Status
CLOSED
Thread
Creator
bloodyb
11-26-14 11:23 PM
Last
Post
bloodyb
11-26-14 11:23 PM
Additional Thread Details
Views: 317
Today: 0
Users: 1 unique

Thread Actions

Thread Closed
New Thread
New Poll
Order
 

batch program game help.

 

11-26-14 11:23 PM
bloodyb is Offline
| ID: 1108461 | 929 Words

bloodyb
Level: 38

POSTS: 239/305
POST EXP: 30893
LVL EXP: 338801
CP: 1022.0
VIZ: 27016

Likes: 0  Dislikes: 0
I am making a batch game or .bat

I've never used batch before. just javascript. I just wanted 2 try something a little different.

I found this how to on youtube on batch rpg games video on youtube but i haven't heard any thing back from the person that created it.

Everything is working fine so far but i have ran into a big problem. When ever i buy something from my shop it won't equip me with it. It takes my money but it don't do anything else. Here is the program code. If anybody knows what i have done wrong will you please tell me.
I also haven't started on the battle system yet. This is what i have so far. The saving and loading work fine, it is just the shop that i am having problems with. If you want 2 see what i mean for yourself then just copy and paste it into notepad and save it as what name you want .bat and make sure 2 save it under all files.


title
color 0f
@echo off
:menu
cls
echo World Of Warriors!
echo ------------------
echo.
echo 1) Start a new game.
echo 2) Load Game.
echo 3) Exit World Of Warriors.
echo.
set /p input=Enter:
if %input% == 1 goto start
if %input% == 2 goto load
if %input% == 3 exit
goto menu
:start
set level=1
set health=100
set money=200
set exp=0
set expmax=100
set str=10
set def=0
set wep=0
set wepdis=None
set armdis=None
set hpots=0
cls
echo What is your name warrior?
set /p name=Enter:
goto main
:main
cls
color 1c
echo  Welcome to world of Warriors! Made by BloodyB.
echo  ______________________________
echo %name%  %Lvl%  %money% %health%
echo Hp: %health%  
echo exp XP:%exp%/%expmax%
echo Weapon: %wepdis%  Armor %armdis%
echo Money: %Money%
echo _________________________________  
echo 1) Fight!
echo 2) Shop.
echo 3) Save your game.
echo 4) Exit.
echo.
set /p input=Enter
If %input% == 1 goto fight
if %input% == 2 goto shop
if %input% == 3 goto save
if %input% == 4 goto exit
goto main
:load
< save.sav (
set /p name=
set /p level=
set /p health=
set /p money=
set /p exp=
set /p expmax=
set /p str=
set /p def=
set /p wep=
set /p wepdis=
set /p armdis=
set /p hpots=
)
cls
echo Game Loaded.
pause >nul
goto main
:fight
cls
echo unfinished
pause >nul
goto menu
:shop
cls
echo World of Warriors shop.
echo ----------------------
echo %name%
echo %money%
echo ----------------------
echo.
echo [a)Weapons]b)Armor]c)Potions]
set /p input=Enter:
echo 1) Dagger   $30    lvl: 1
echo 2) Wa Sword $50    lvl: 5
echo 3) De Sword $100   lvl: 9
echo 4 Main Menu
echo.
set /p input=Enter:
if %input% == 4 goto main
if %input% == b goto shop2
if %input% == c goto shop3
if %money% LSS 30 goto nofunds
if %input% == 1 set /a money= %money% - 30
if %input% == 1 set wep=1
if %input% == 1 goto main
if %level% LSS 5 goto nolev
if %money% LSS 50 goto nofunds
if %input% == 2 set /a money= %money% - 50
if %input% == 2 set wep=2
if %input% == 2 goto main
if %level% LSS 9 goto nolev
if %money% LSS 100 goto nofunds
if %input% == 3 set /a money= %money% - 100
if %input% == 1 set wep=3
if %input% == 3 goto main
goto shop
:shop2
cls
echo World of Warriors armor shop.
echo -----------------------------
echo %name%
echo Money. %money%
echo ----------------------------
echo [a)Weapons[b)[Armor)c)Potions]
echo 1) Shield a   $50   lvl: 1
echo 2) Shield b   $100  lvl: 5
echo 3) shield c   $150  lvl: 9
echo.
set /p input=Enter:
if %input% == 4 goto main
if %input% == b goto shop2
if %input% == c goto shop3
if %money% LSS 50 goto nofunds
if %input% == 1 set /a money= %money% - 50
if %input% == 1 set arm=1
if %input% == 1 goto main
if %level% LSS 5 goto nolev
if %money% LSS 100 goto nofunds
if %input% == 2 set /a money= %money% - 100
if %input% == 2 set arm=2
if %input% == 2 goto main
if %level% LSS 9 goto nolev
if %money% LSS 150 goto nofunds
if %input% == 3 set /a money= %money% - 150
if %input% == 3 set arm=3
if %input% == 3 goto main
goto shop2
:shop3
cls
echo World of Warriors potion shop.
echo -----------------------------
echo %name%
echo Money. %money%
echo -----------------------------
echo 1) Health Potion  $40
echo 2) level potion   $400
echo 3) Back
echo.
set /p input=Enter:
if %input% == 3 goto main
if %input% == a goto shop1
if %input% == b goto shop2
if %money% LSS 40 goto nofunds
if %input% == 1 set /a money= %money% - 40
if %input% == 1 set hpot= %hpots% + 1
if %input% == 1 goto main
if %money% LSS 400 goto nofunds
if %input% == 2 set /a money= %money% - 40
if %input% == 2 set hpot= %hpots% + 1
if %input% == 2 goto main
goto shop3
:nofunds
cls
echo You Don't have enough money yet
echo to purchase this item.
pause >nul
goto main
:nolev
cls
echo Your not a strong enough
echo warrior yet to make this purchase.
pause >nul
goto main
goto shop
:save
(
echo %name%
echo %level%
echo %health%
echo %money%
echo %exp%
echo %expmax%
echo %str%
echo %def%
echo %wep%
echo %wepdis%
echo %armdis%
echo %hpots%
) > save.sav
cls
echo Your game has been saved.
pause >nul
goto main
:exit
cls
echo unfinished
pause >nul
goto menu
I am making a batch game or .bat

I've never used batch before. just javascript. I just wanted 2 try something a little different.

I found this how to on youtube on batch rpg games video on youtube but i haven't heard any thing back from the person that created it.

Everything is working fine so far but i have ran into a big problem. When ever i buy something from my shop it won't equip me with it. It takes my money but it don't do anything else. Here is the program code. If anybody knows what i have done wrong will you please tell me.
I also haven't started on the battle system yet. This is what i have so far. The saving and loading work fine, it is just the shop that i am having problems with. If you want 2 see what i mean for yourself then just copy and paste it into notepad and save it as what name you want .bat and make sure 2 save it under all files.


title
color 0f
@echo off
:menu
cls
echo World Of Warriors!
echo ------------------
echo.
echo 1) Start a new game.
echo 2) Load Game.
echo 3) Exit World Of Warriors.
echo.
set /p input=Enter:
if %input% == 1 goto start
if %input% == 2 goto load
if %input% == 3 exit
goto menu
:start
set level=1
set health=100
set money=200
set exp=0
set expmax=100
set str=10
set def=0
set wep=0
set wepdis=None
set armdis=None
set hpots=0
cls
echo What is your name warrior?
set /p name=Enter:
goto main
:main
cls
color 1c
echo  Welcome to world of Warriors! Made by BloodyB.
echo  ______________________________
echo %name%  %Lvl%  %money% %health%
echo Hp: %health%  
echo exp XP:%exp%/%expmax%
echo Weapon: %wepdis%  Armor %armdis%
echo Money: %Money%
echo _________________________________  
echo 1) Fight!
echo 2) Shop.
echo 3) Save your game.
echo 4) Exit.
echo.
set /p input=Enter
If %input% == 1 goto fight
if %input% == 2 goto shop
if %input% == 3 goto save
if %input% == 4 goto exit
goto main
:load
< save.sav (
set /p name=
set /p level=
set /p health=
set /p money=
set /p exp=
set /p expmax=
set /p str=
set /p def=
set /p wep=
set /p wepdis=
set /p armdis=
set /p hpots=
)
cls
echo Game Loaded.
pause >nul
goto main
:fight
cls
echo unfinished
pause >nul
goto menu
:shop
cls
echo World of Warriors shop.
echo ----------------------
echo %name%
echo %money%
echo ----------------------
echo.
echo [a)Weapons]b)Armor]c)Potions]
set /p input=Enter:
echo 1) Dagger   $30    lvl: 1
echo 2) Wa Sword $50    lvl: 5
echo 3) De Sword $100   lvl: 9
echo 4 Main Menu
echo.
set /p input=Enter:
if %input% == 4 goto main
if %input% == b goto shop2
if %input% == c goto shop3
if %money% LSS 30 goto nofunds
if %input% == 1 set /a money= %money% - 30
if %input% == 1 set wep=1
if %input% == 1 goto main
if %level% LSS 5 goto nolev
if %money% LSS 50 goto nofunds
if %input% == 2 set /a money= %money% - 50
if %input% == 2 set wep=2
if %input% == 2 goto main
if %level% LSS 9 goto nolev
if %money% LSS 100 goto nofunds
if %input% == 3 set /a money= %money% - 100
if %input% == 1 set wep=3
if %input% == 3 goto main
goto shop
:shop2
cls
echo World of Warriors armor shop.
echo -----------------------------
echo %name%
echo Money. %money%
echo ----------------------------
echo [a)Weapons[b)[Armor)c)Potions]
echo 1) Shield a   $50   lvl: 1
echo 2) Shield b   $100  lvl: 5
echo 3) shield c   $150  lvl: 9
echo.
set /p input=Enter:
if %input% == 4 goto main
if %input% == b goto shop2
if %input% == c goto shop3
if %money% LSS 50 goto nofunds
if %input% == 1 set /a money= %money% - 50
if %input% == 1 set arm=1
if %input% == 1 goto main
if %level% LSS 5 goto nolev
if %money% LSS 100 goto nofunds
if %input% == 2 set /a money= %money% - 100
if %input% == 2 set arm=2
if %input% == 2 goto main
if %level% LSS 9 goto nolev
if %money% LSS 150 goto nofunds
if %input% == 3 set /a money= %money% - 150
if %input% == 3 set arm=3
if %input% == 3 goto main
goto shop2
:shop3
cls
echo World of Warriors potion shop.
echo -----------------------------
echo %name%
echo Money. %money%
echo -----------------------------
echo 1) Health Potion  $40
echo 2) level potion   $400
echo 3) Back
echo.
set /p input=Enter:
if %input% == 3 goto main
if %input% == a goto shop1
if %input% == b goto shop2
if %money% LSS 40 goto nofunds
if %input% == 1 set /a money= %money% - 40
if %input% == 1 set hpot= %hpots% + 1
if %input% == 1 goto main
if %money% LSS 400 goto nofunds
if %input% == 2 set /a money= %money% - 40
if %input% == 2 set hpot= %hpots% + 1
if %input% == 2 goto main
goto shop3
:nofunds
cls
echo You Don't have enough money yet
echo to purchase this item.
pause >nul
goto main
:nolev
cls
echo Your not a strong enough
echo warrior yet to make this purchase.
pause >nul
goto main
goto shop
:save
(
echo %name%
echo %level%
echo %health%
echo %money%
echo %exp%
echo %expmax%
echo %str%
echo %def%
echo %wep%
echo %wepdis%
echo %armdis%
echo %hpots%
) > save.sav
cls
echo Your game has been saved.
pause >nul
goto main
:exit
cls
echo unfinished
pause >nul
goto menu
Member
It's true, my brain is insane. That is why it is so easy for me 2 cause you pain.


Affected by 'Laziness Syndrome'

Registered: 03-27-13
Location: Evansville, Indiana
Last Post: 3031 days
Last Active: 2960 days

(edited by bloodyb on 11-26-14 11:29 PM)    

Links

Page Comments


This page has no comments

Adblocker detected!

Vizzed.com is very expensive to keep alive! The Ads pay for the servers.

Vizzed has 3 TB worth of games and 1 TB worth of music.  This site is free to use but the ads barely pay for the monthly server fees.  If too many more people use ad block, the site cannot survive.

We prioritize the community over the site profits.  This is why we avoid using annoying (but high paying) ads like most other sites which include popups, obnoxious sounds and animations, malware, and other forms of intrusiveness.  We'll do our part to never resort to these types of ads, please do your part by helping support this site by adding Vizzed.com to your ad blocking whitelist.

×