Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- Title BGO Alpha v1.0
- setlocal enabledelayedexpansion
- :start
- cls
- echo.
- echo ::::::::: :::::::: ::::::::
- echo :+: :+: :+: :+: :+: :+:
- echo +:+ +:+ +:+ +:+ +:+
- echo +#++:++#+ :#: +#+ +:+
- echo +#+ +#+ +#+ +#+# +#+ +#+
- echo #+# #+# #+# #+# #+# #+#
- echo ######### ######## ########
- echo.
- echo Welcome to Batch Game Offline.
- echo.
- echo [1] Start Game
- echo [2] Info
- echo [3] Exit
- choice /c 123 /n /m "Where would you like to go?"
- if errorlevel 3 goto exit
- if errorlevel 2 goto information
- if errorlevel 1 goto game.load
- :exit
- cls
- echo Are you 100% sure you wish to exit? This will delete all character data.
- echo [1] I'm Positive.
- echo [2] Ehh I'm not too sure.
- echo.
- choice /c 12 /n
- if errorlevel 2 goto start
- if errorlevel 1 exit
- :information
- cls
- echo Ah yes, looking for information I see?
- echo This game is the first ever game made by Raple.
- echo I am obviously the console, but you may call me Stan.
- echo This game was started some time around July of 2014.
- echo It was coded over time, and a lot of effort was pooled into this.
- echo Suggestions came from MPGH and from a few friends of Raple, Zach and Trollaux.
- echo Even though some of you may think this is easy, it really isn't.
- echo Batch is simple, but difficult to get it to do what you want.
- echo Batch is not nearly as flexible as languages like C++ and Lua.
- echo Anyways, I'll let you get back to playing.
- pause
- goto start
- ::#################################BACKGROUND GAME INFO#################################
- :game.load
- cls
- echo Loading up basic character data.
- ping localhost -n 3 >nul
- set hp=10
- set maxhp=10
- set dmg=1
- set arm=0
- set lvl=1
- set money=0
- set currloc=Base Camp
- set carm=Peasant Clothing
- set cwep=Just your fists
- set expneed=10
- set exp=0
- set statpoints=0
- set str=0
- set tog=0
- set vit=0
- echo.
- echo Keep in mind: Closing or exiting the game will delete ALL
- echo character data. You have been warned.
- pause
- cls
- echo Please enter your Username.
- echo.
- set /p user=
- goto basecamp
- :exit.warn.basecamp
- cls
- echo Wait! If you exit now all data will be deleted.
- echo Are you sure? Type exit if you are sure.
- echo.
- set /p c=
- if "!c!" == "exit" (
- goto start
- )
- goto basecamp
- :premain
- cls
- echo You awaken to the sound of burning wood, and the scent of smoke.
- ping localhost -n 4 >nul
- echo This is unlike any normal day. "This is not right," you tell yourself.
- ping localhost -n 4 >nul
- echo You open your eyes to see your home in flames.
- ping localhost -n 4 >nul
- echo The only exit is the window to your right. Otherwise, you will be killed.
- ping localhost -n 4 >nul
- echo Jumping to your feet, only grabbing what you can, you jump.
- ping localhost -n 4 >nul
- echo As you land, the wind is knocked completely out of you.
- ping localhost -n 4 >nul
- echo You look around you to see that more than just your house is on fire.
- ping localhost -n 4 >nul
- echo The town is being attacked, by what you do not know.
- ping localhost -n 4 >nul
- echo Just as you are trying to comprehend what is happen, you are struck.
- ping localhost -n 4 >nul
- echo A falling piece of supporting wood has knocked onto your head.
- ping localhost -n 4 >nul
- echo After you come to moments later, a thought passes your mind.
- ping localhost -n 4 >nul
- echo "Mother is still inside."
- ping localhost -n 4 >nul
- echo Rushing back into the front door, you manage to hear the screams.
- ping localhost -n 4 >nul
- echo The screams of your Mother dying.
- ping localhost -n 4 >nul
- echo You search, but to no avail. The house begins to colapse around you.
- ping localhost -n 4 >nul
- echo You are hit, and hard. The debree falling around you has engulfed your body.
- ping localhost -n 4 >nul
- echo The last thing you remember is your house being entirely destroyed.
- ping localhost -n 4 >nul
- echo.
- echo Press any key to continue.
- pause >nul
- goto premain2
- :premain2
- cls
- echo Your eyes blink open. The surroundings have changed, and you are alright.
- ping localhost -n 4 >nul
- echo Someone or something has gotten you out, and alive as well.
- ping localhost -n 4 >nul
- echo However, you are alone. You have nothing more than your wits,
- ping localhost -n 4 >nul
- echo your clothes, and your locket. The locket contains a picture of your mother.
- ping localhost -n 4 >nul
- echo Whoever saved you has left your belongings alone.
- ping localhost -n 4 >nul
- echo All you know now is you must know who has done this to your town.
- ping localhost -n 4 >nul
- echo Getting up and walking across the hill, you see the destruction.
- ping localhost -n 4 >nul
- echo Most of the building have burned down, all of the people are gone.
- ping localhost -n 4 >nul
- echo What is left, is not much.
- ping localhost -n 4 >nul
- echo Turning back, you notice you are in a small camp. Good for one person.
- ping localhost -n 4 >nul
- echo There is wood, a firepit, a fire starter, a tent, and a ready made bed.
- ping localhost -n 4 >nul
- echo "This seems like a base camp," you say to yourself.
- ping localhost -n 4 >nul
- echo After searching the bed, you find a small, unmarked map.
- ping localhost -n 4 >nul
- echo It seems whoever brought you here wants you to figure it out as well.
- ping localhost -n 4 >nul
- echo You prepare yourself, and get ready to traverse through this world.
- ping localhost -n 4 >nul
- echo You are ready to avenge your people.
- ping localhost -n 4 >nul
- echo.
- echo Press any key to continue.
- pause >nul
- goto basecamp
- ::#######################ALL CAMPS####################
- :basecamp
- cls
- echo Current location: %currloc%
- echo Name: %user%
- echo HP: %hp%
- echo DMG: !dmg! [+!str!]
- echo ARM: !arm! [+!tog!]
- echo $: %money%
- echo Level: %lvl%
- echo EXP: !exp! / !expneed!
- echo Weapon: %cwep%
- echo Armor: %carm%
- echo.
- echo You are at your small, premade base camp. Not much is here.
- echo.
- echo What would you like to do?
- echo [1] Go out into the forest.
- echo [2] Look at the map.
- echo [3] Sleep.
- echo [4] Check my inventory.
- echo [5] Exit to the menu.
- echo.
- set /p c=
- if "!c!" == "1" goto Forest.entry
- if "!c!" == "3" goto sleep.basecamp
- if "!c!" == "4" goto inventory.basecamp
- if "!c!" == "5" goto exit.warn.basecamp
- :sleep.basecamp
- cls
- echo You lie down for a quick sleep.
- if !statpoints! GEQ 1 (
- goto spendpoints.basecamp
- )
- pause
- set hp=!maxhp!
- goto basecamp
- :spendpoints.basecamp
- cls
- if "!statpoints!" == "0" (
- goto basecamp
- )
- echo It seems you have some stat points to spend!
- echo ==strength== =vita=lity= =toughness=
- echo =========== =========== ===========
- echo =====!str!===== =====!vit!===== =====!tog!=====
- echo =========== =========== ===========
- echo =========== =========== ===========
- echo.
- echo Available points: !statpoints!
- echo.
- echo [1] Increase strength
- echo [2] Increase vitality
- echo [3] Increase toughness
- set /p c=
- if "!c!" == "1" (
- set /a str+=1
- set /a statpoints-=1
- )
- if "!c!" == "2" (
- set /a vit+=1
- set /a statpoints-=1
- set /a maxhp+=5
- )
- if "!c!" == "3" (
- set /a tog+=1
- set /a statpoints-=1
- )
- goto spendpoints.basecamp
- :inventory.basecamp
- cls
- echo You open your storage up, and check out what you have.
- echo.
- echo Weapon: %cwep%
- echo Armor: %carm%
- echo.
- echo [1] Check Weapons
- echo [2] Check Armor
- echo [3] Check Magical Items
- echo [4] Check Misc.
- echo [5] Close Storage
- echo.
- set /p c=
- if "!c!" == "1" goto inv.wep.basecamp
- if "!c!" == "2" goto inv.arm.basecamp
- if "!c!" == "3" goto inv.mag.basecamp
- if "!c!" == "4" goto inv.misc.basecamp
- if "!c!" == "5" goto basecamp
- :inv.wep.basecamp
- cls
- echo You check the weapons compartment of your storage.
- echo.
- echo Weapon: %cwep%
- echo.
- echo [1] Just your fists.
- if "!shortsword!" == "true" (
- echo [2] Short Sword
- )
- echo [B] Back to main storage
- echo.
- set /p c=
- if "!c!" == "1" (
- set cwep=Just your fists.
- )
- if "!c!" == "2" (
- if "!shortsword!" == "true" (
- set cwep=Short Sword
- )
- )
- if "!c!" == "b" (
- goto inventory.basecamp
- )
- :inv.arm.basecamp
- cls
- echo You check the armor compartment of your storage.
- echo.
- echo Armor: %carm%
- echo.
- echo [1] Peasant Clothing
- if "!leatherarmor!" == "true" (
- echo [2] Leather Armor
- )
- echo [B] Back to main storage
- echo.
- set /p c=
- if "!c!" == "1" (
- set carm=Peasant Clothing
- )
- if "!c!" == "2" (
- if "!leatherarmor!" == "true" (
- set carm=Leather Armor
- )
- )
- if "!c!" == "b" (
- goto inventory.basecamp
- )
- :inv.mag.basecamp
- cls
- echo You check the magical compartment of your storage.
- echo.
- if "!healthpotion!" GEQ 1 (
- echo [1] Health Potion x!healthpotion!
- )
- echo [B] Back to main storage
- echo.
- set /p c=
- if "!c!" == "1" (
- if "!healthpotion!" GEQ 1 (
- echo You drink a health potion.
- set /a hp+=10
- pause
- goto inv.mag.basecamp
- )
- )
- if "!c!" == "b" (
- goto inventory.basecamp
- )
- :inv.misc.basecamp
- cls
- echo You check the misc. compartment of your storage.
- echo.
- echo [B] Back to main storage
- echo.
- set /p c=
- if "!c!" == "b" (
- goto inventory.basecamp
- )
- ::############################MOB INDEX#########################
- :mob.index
- cls
- if "!mobname!" == "Snake Beast" (
- set mobhp=4
- set mobdmg=1
- goto forest.fight
- )
- if "!mobname!" == "Giant Rat" (
- set mobhp=2
- set mobdmg=1
- goto forest.fight
- )
- if "!mobname!" == "Goblin" (
- set mobhp=5
- set mobdmg=1
- goto forest.fight
- )
- if "!mobname!" == "Ent" (
- set mobhp=6
- set mobdmg=2
- goto forest.fight
- )
- ::#######################BASECAMP FOREST#################
- :Forest.entry
- if !exp! GEQ !expneed! goto forest.levelup
- cls
- ping localhost -n 1 >nul
- echo You make your way to the pine needle covered entryway.
- echo.
- echo What would you like to do?
- echo.autism
- echo [1] Go hunting.
- echo [2] Go back to camp.
- echo.
- set /p c=
- if "!c!" == "2" goto basecamp
- if "!c!" == "1" goto forest.mobroll
- :forest.mobroll
- cls
- set /a forestmob=%random% %%100
- if !forestmob! GEQ 75 (
- set mobname=Snake Beast
- goto mob.index
- )
- if !forestmob! GEQ 50 (
- set mobname=Giant Rat
- goto mob.index
- )
- if !forestmob! GEQ 25 (6
- set mobname=Goblin
- goto mob.index
- )
- if !forestmob! GEQ 0 (
- set mobname=Ent
- goto mob.index
- )
- :forest.fight
- cls
- echo You are fighting a %mobname%!
- echo.
- echo Their HP: %mobhp%
- echo Their DMG: %mobdmg%
- echo.
- echo Your HP: %hp%
- echo Your DMG: %dmg% [+!str!]
- echo.
- echo What will you do?
- echo.
- echo [1] Attack
- echo [2] Run
- echo.
- set /p c=
- if "!c!" == "1" goto forest.att
- if "!c!" == "2" goto forest.run
- :forest.att
- set /a mobhp-="(!dmg!+!str!)"
- set /a hp-="((!mobdmg!-!arm!)-!tog!)"
- if !hp! GEQ !maxhp! (
- set /a hp="!maxhp!"
- )
- if !mobhp! LEQ 0 goto forest.victory
- goto forest.fight
- :forest.victory
- cls
- echo You have triumphed over the !mobname!!
- echo.
- if "!mobname!" == "Snake Beast" (
- set /a moneygain=%random% %%15
- set /a money+="!moneygain!"
- set /a expgain=2
- set /a exp+="!expgain!"
- echo You recieve !moneygain! money!
- echo You recieve !expgain! EXP!
- pause
- goto Forest.entry
- )
- if "!mobname!" == "Giant Rat" (
- set /a moneygain=%random% %%10
- set /a money+="!moneygain!"
- set /a expgain=1
- set /a exp+="!expgain!"
- echo You recieve !moneygain! money!
- echo You recieve !expgain! EXP!
- pause
- goto Forest.entry
- )
- if "!mobname!" == "Ent" (
- set /a moneygain=%random% %%25
- set /a money+="!moneygain!"
- set /a expgain=4
- set /a exp+="!expgain!"
- echo You recieve !moneygain! money!
- echo You recieve !expgain! EXP!
- pause
- goto Forest.entry
- )
- if "!mobname!" == "Goblin" (
- set /a moneygain=%random% %%20
- set /a money+="!moneygain!"
- set /a expgain=3
- set /a exp+="!expgain!"
- echo You recieve !moneygain! money!
- echo You recieve !expgain! EXP!
- pause
- goto Forest.entry
- )
- goto Forest.entry
- :forest.levelup
- cls
- echo Congratulations, you have leveled up.
- echo.
- set /a lvl+=1
- set exp=0
- set /a expneed+=%random% %%15
- set /a statpoints+=1
- echo You have been awarded a skill point.
- echo Spend it by sleeping.
- pause
- goto basecamp
- ::#############################BASE CAMP MAP AREAS#############################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement