For the last two to three days iv taken some time to create a demo of a Batch file RPG game. If you want to try it out and give me some pointers, email me.
Bio: Pretty simple batch made programme that lets you select you own path. Each character will take you to different places. battle different enemy's and gain different stats.
Pictures:
[IMG]http://i1359.photobucket.com/albums/q790/john_novak1/Capture_zps9a46b28e.png[/IMG]
[IMG]http://i1359.photobucket.com/albums/q790/john_novak1/Capture1_zpsdbce5f0d.png[/IMG]
[IMG]http://i1359.photobucket.com/albums/q790/john_novak1/Capture11_zps9ecfb97d.png[/IMG]
Directions:
- copy + paste code into NotePad
- save as "BatchRPG.bat"
- Play!
Bio: Pretty simple batch made programme that lets you select you own path. Each character will take you to different places. battle different enemy's and gain different stats.
Pictures:
[IMG]http://i1359.photobucket.com/albums/q790/john_novak1/Capture_zps9a46b28e.png[/IMG]
[IMG]http://i1359.photobucket.com/albums/q790/john_novak1/Capture1_zpsdbce5f0d.png[/IMG]
[IMG]http://i1359.photobucket.com/albums/q790/john_novak1/Capture11_zps9ecfb97d.png[/IMG]
Directions:
- copy + paste code into NotePad
- save as "BatchRPG.bat"
- Play!
Code
@echo off
:aa
title Batch Battles RPG Version 1.D.0 - By: That_Lad
echo What Is Your Name Warrior?
echo.
echo ,A
echo g@@
echo A. d@V@
echo i@b iA` @ .A
echo i@V@s dA` @ ,@@i
echo i@ '*@Ws__mW@f @@ ]@@@
echo @] '^**f` @@@ g@!l@
echo @b . ,g @@@W ,W@[ l@
echo ]@ MMf ~**f^ @@^@@Wm_. _g@@` l@
echo M[ ^^ ^^ @@ ^*@@f` l@
echo ]@i '[]` . '[]` @@ ~~` l@
echo '@W [ @@ _. l@
echo Y@i 'Ns . @@ _m@@m, g*~VWi l@
echo M@. ,. g@` ]@@ gP V, ' m- ` l@
echo '@W Vmm@f @@@. ~ m- g ' l@
echo '@b 'V***f g@A@W ' @ l@
echo '*W_ g@A`M@b g M_. l@
echo 'VMms___gW@@f @@. '- ~` W@
echo ~**f~` @@. ,_m@Ws__ @@
echo '@@. gA~` ~~* ]@P
echo M@s.'` g@A
echo V@@Ws. __m@@A
echo ~*M@@*`
echo.
msg * "Password: thatlad
set /p name=My Name Is:
set /p pass=My Pass Is:
if %pass%==thatlad goto next
if %pass%==* goto wrong
if %pass%==shopsmage1 goto shopsmage1
:wrong
cls
msg * Invalid Username Or Password.
goto aa
:next
if %name%==god goto god
cls
echo Server: New Message.
ping localhost >nul
echo Server: Opening Message.
ping localhost >nul
goto intro
:intro
cls
echo Dear %name% ,
echo.
echo There hasith been such poverty since the dragons arose back in
echo the elders time. Now not only are they comming back but we have
echo not seen the fields prosper in ages, we should of known.
echo.
echo There is a town called Gnusmas. Go there and be the best warrior
echo you can be. There are knights comming out of that town all the time,
echo your time is now. Now go, save our people.
echo.
echo sincerely, Chelka
echo.
echo.
echo.
pause
goto a
:a
cls
title Command Based Game - Version 1.D.0 - By That_Lad
echo ::
echo Welcome %name%, please select a class below
echo ::
echo.
echo Mage - Hard hitting, but lacks in health.
echo.
echo Fighter - Well balanced, weakness is magic. (Not Avaliable In Demo)
echo.
echo Ranger - Quick and strong, from a distance. (Not Avaliable In Demo)
echo.
echo ::
echo Help - Brings Help Menu Up At Any Input Time / How To Steal
echo ::
echo.
set /p c=Class:
if %c%==mage goto mage
if %c%==fighter goto er2
if %c%==ranger goto er2
if %c%==Mage goto mage
if %c%==Fighter goto er2
if %c%==Ranger goto er2
if %c%==* goto er
if %c%==Help goto help
if %c%==help goto help
:er
cls
title Whoops!
echo Looks like we have ran into an error. Click enter to go to the main menu!
pause >nul
goto a
:er2
cls
title Whoops!
msg * Batch RPG: "Class Unavaliable Please Choose Another!"
goto a
:help
cls
title Help Menu
echo si - for when your in shops if you put si before item
echo with no space, you will attpempt to steal item.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Coded By That_Lad - for bug reports please email me at: (There Are A Lot Its a Batch File)
echo [email protected]
pause >nul
goto a
:mage
cls
echo You have chosen the Mage class! Here are your stats:
echo.
echo Attack (magic) : 10
echo Strength : 5
echo Defence : 3
echo Theif : 1
echo Health : 75 / 75
echo.
echo ::
pause
goto storymage
:storymage
cls
echo.
echo Attack (magic) : 10
echo Strength : 5
echo Defence : 3
echo Theif : 1
echo Health : 75 / 75
echo.
echo ::
echo.
echo Stranger: %name% , here take this...
ping localhost >nul
echo Server: Obtained 100gp
ping localhost >nul
cls
echo.
echo Attack (magic) : 10
echo Strength : 5
echo Defence : 3
echo Theif : 1
echo Health : 75 / 75
echo Gold : 100gp
echo.
echo ::
echo Stranger: %name% , here take this...
echo Server: Obtained 100gp
echo Stranger: /runs away.
echo.
echo What would you like to do now?
echo.
echo ::
echo.
echo - Train : level 3 Storm Wolf
echo - Shops : Town of Gnusmas
echo.
set /p b=Option:
if %b%==train goto train1
if %b%==shops goto shopsmage1
:shopsmage1
cls
echo.
echo Attack (magic) : 10
echo Strength : 5
echo Defence : 3
echo Theif : 1 (5 percent Success Rate At Lled's)
echo Health : 75 / 75
echo Gold : 100gp
echo.
echo ::
echo.
echo Associate: Hello traveler! Welcome to Lled's Shop! Have a Look Around...
echo.
echo ::
echo d - Dynomite (x1) 900gp x
echo.
echo hp - 10HP Potion (x1) 10gp x
echo.
echo ss - Flax 25gp x
echo.
echo r - Dagger 5gp stealable
echo.
echo go - Gold Ore (x1) 45gp x
echo ::
echo.
set /p a= Would You Like Any Of My Things? :
if %a%==d goto notenoughgold
if %a%==hp goto dontneeditemhp
if %a%==ss goto purchase1
if %a%==r goto dontneeditemrag
if %a%==go goto dontneeditemore
if %a%==sir goto stolen1
if %a%==* goto shopsmage1
:notenoughgold
msg * Batch RPG: "You Do Not Have Enough GP For This Item."
goto shopsmage1
:dontneeditemhp
msg * Batch RPG: "You Do Not Need Health Potion Your Health Is Full!"
goto shopsmage1
:purchase1
msg * Batch RPG: "Try Stealing This Item : Read Help File On How To Steal."
goto shopsmage1
:dontneeditemrag
msg * Batch RPG: "Try Stealing This Item : Read Help File On How To Steal."
goto shopsmage1
:dontneeditemore
msg * Batch RPG: "You Have No Use For Gold Ore."
goto shopsmage1
:stolen1
msg * Batch RPG: "You Have Stolen A Dagger."
msg * Batch RPG: "Your Theif Level Has Increased!"
goto shopsmage3
:shopsmage3
cls
echo.
echo Attack (magic) : 10
echo Strength : 5
echo Defence : 3
echo Theif : 3 (11 percent Success Rate At Lled's)
echo Health : 75 / 75
echo Gold : 100gp
echo.
echo ::
echo.
echo Associate: Hello traveler! Welcome to Lled's Shop! Have a Look Around...
echo.
echo ::
echo d - Dynomite (x1) 900gp x
echo.
echo hp - 10HP Potion (x1) 10gp x
echo.
echo ss - Flax 25gp x
echo.
echo r - Dagger 5gp stealable
echo.
echo go - Gold Ore (x1) 45gp x
echo ::
echo.
set /p a= Would You Like Any Of My Things? :
if %a%==d goto notenoughgold
if %a%==hp goto dontneeditemhp
if %a%==ss goto purchase1
if %a%==r goto dontneeditemrag
if %a%==go goto dontneeditemore
if %a%==sir goto stolen1
if %a%==* goto shopsmage1
:notenoughgold
msg * Batch RPG: "You Do Not Have Enough GP For This Item."
goto shopsmage3
:dontneeditemhp
msg * Batch RPG: "You Do Not Need Health Potion Your Health Is Full!"
goto shopsmage3
:purchase1
msg * Batch RPG: "You Have No Use For Flax."
goto shopsmage1
:dontneeditemrag
msg * Batch RPG: "You Have No Use For Flax."
goto shopsmage1
:dontneeditemore
msg * Batch RPG: "You Have No Use For Gold Ore."
goto shopsmage3
:stolen1
msg * Batch RPG: "You Have Already Stolen A Dagger."
ping localhost >nul
goto enddemo
:train1
cls
echo.
echo Attack (magic) : 10
echo Strength : 5
echo Defence : 3
echo Theif : 1
echo Health : 75 / 75
echo Gold : 100gp
echo.
echo ::
echo.
echo Server: You Need A Weapon Before You Start To Train!
echo.
echo Server: Click Any Key To Be Rediricted To The Shops...
pause >nul
goto shopsmage1
:enddemo
cls
title THANKS FOR PLAYING
echo Thank you for playing my demo. I hope you enjoyed it. there will
echo be a lot more to come, but since it is all in batch it takes
echo a very long time to write all of this. the dmeo took me
echo three days. anywho contact me @ [email protected]
pause >nul
goto aa