loading

This is a quick starting point for a batch file text based game. My idea was a dnd type game using the D20 system.
Let's begin!

Step 1: Batch

To create a batch first open notepad and remember when you save the file change the .txt to .bat by saving it as filename.bat
<p>Search up &quot;How to Batch for Starters&quot;. It's some of the basic codes I know.</p>
If you want someone to help finish this with you then I would be honoured...
That&acirc;€™d be great. Honestly I haven&acirc;€™t worked on this since I posted it. If you want to take a crack at it that&acirc;€™d be amazing!
Sure, but I'll need some help with ideas on what to make it do... <br> <br>Are you up for the challenge?
Can i help?
...A little bit too late. Our team fell apart as exavi's computer broke and WOKANDAL had his super important exams. We never got back to it, and not much progress has been made. <br> <br>I'd like to see some good instructables from you though.
Hi I am maaking a fully fleged game its called the right key you have to press the right key to move your charactor when I finish it can I uplode it to the app store or is there any outher way I can get money from it?
ahhh no!!!!! I messed up my name!!! it was suppost to be mastervrunner
<p>@echo off</p><p>title Forest Survival</p><p>echo Forest Survival</p><p>echo Will you survive, or die trying?</p><p>echo Enter Name</p><p>set /p name=</p><p>set pick=7</p><p>pause</p><p>goto start</p><p>:start</p><p>cls</p><p>set /a pick=%pick% -1</p><p>set lvl=1</p><p>set armor=0</p><p>set /a ac=(10 +((%lvl% /2) +%armor%))</p><p>set setscore=%pick% +10</p><p>echo What will your %pick%th highest stat be?</p><p>echo 1 Strength</p><p>echo 2 Constitution</p><p>echo 3 Dexterity</p><p>echo 4 Intelligence</p><p>echo 5 Wisdom</p><p>echo 6 Charisma</p><p>set /p chsc=</p><p>if %chsc%==1 set /a str=(%setscore% +(%lvl% /2))</p><p>if %chsc%==2 set /a con=(%setscore% +(%lvl% /2))</p><p>if %chsc%==3 set /a dex=(%setscore% +(%lvl% /2))</p><p>if %chsc%==4 set /a int=(%setscore% +(%lvl% /2))</p><p>if %chsc%==5 set /a wis=(%setscore% +(%lvl% /2))</p><p>if %chsc%==6 set /a cha=(%setscore% +(%lvl% /2))</p><p>if %pick%==1 goto charstats</p><p>else</p><p>goto start</p><p>:charstats</p><p>cls</p><p>echo %name%</p><p>echo Strength %str%</p><p>echo Chomstitution %con%</p><p>echo Dexterity %dex%</p><p>echo Intelligence %int%</p><p>echo Wisdom %wis%</p><p>echo Charisma %cha%</p><p>echo AC %ac%</p><p>pause</p><p>Just made a few tweaks</p>
<p>hello I am a beginning batch file maker and I was wondering if we could both make a RPG text based game and put it on windows app store</p>
@echo off <br>color 0b <br>TITLE Goose Man <br>echo ./ooo:` <br>echo -dh/--:++ ``` ```` ``` ``` <br>echo `ms `...` /dyyydo` .hhyydh. -dyyy. -hhyhh- <br>echo .M+ :ssmy -N: .N+ dy hh -ds/. `mh+++dh <br> `echo sm: hy -N+ :N: hh` `dy `/m+`my::::- <br>echo :sdhhhy/ :yhhhy: `sdhhh+` +hhhy. .shhhh/ <br>echo. <br>echo /Nm/ .dNs <br>echo /N/m: `dohy -+sso- `o-+so- <br>echo /N`+m. hs`hy --..+N- .My:.oN. <br>echo /N` sd`sh hy +hhhhM: .N- -N- <br>echo /N` `hmm` hy `my::sM: .N- -N- <br>echo ./ `+. :: `/+/./. `+` `+` <br>pause &gt;nul <br>:Main <br>cls <br>echo Welcome to Goose Man <br>echo. <br>echo 1.Start <br>echo 2.Exit <br>set /p $=Enter: <br> <br> <br>if %$% equ 1 goto Start <br>if %$% equ 2 goto exit <br>goto Main <br> <br>:Start <br>cls <br>setlocal enabledelayedexpansion <br>set /p name=Enter your name: <br>if exist QE%name%SAV.dll set load=1 <br>goto new <br> <br>:new <br>set hp=100 <br>set exp=0 <br>set exptill=60 <br>set gold=50 <br>set lvl=1 <br>set power=4 <br>set powergain=3 <br>set weappower=2 <br>set weapprice=120 <br>set pots=1 <br>set armor=0 <br>goto home <br> <br>:load <br>for /f %%a in (QE%name%SAV.dll) do set %%a <br>set /a temp2=(%hp% * %lvl% + %exp% * %exptill% + %weapprice% + %power% * %weappower%)/(%gold% + %pots% + %powergain%) <br>if not %temp1% equ %temp2% set temp3=1 <br>goto home <br> <br>:death <br>cls <br>echo You Died! <br>echo You lost some stuff... <br>set /a exp=%exp% - (%exp% * 65/100) <br>set hp=1 <br>pause &gt;nul <br>goto home <br> <br>:runaway <br>cls <br>echo You sucsessfully ran away! <br>set hp=1 <br>pause &gt;nul <br>goto home <br> <br>:levelup <br>cls <br>echo Congratulations! LEVEL UP <br>pause &gt;nul <br>set /a 1v1=%lvl% + 1 <br>set /a exp=%exp% - %exptill% <br>set /a exptill=%exptill% + %exptill% * 65 / 100 <br>set /a power=%power% + %powergain% <br>set /a powergain+%powergain% +1 <br>set hp=100 <br>goto save <br> <br>::# HOME ##################################################################################################################### <br> <br>:home <br>set en1hp=40 <br>set en2hp=80 <br>set en3hp=160 <br>if %exp% geq %exptill% goto level up <br>cls <br>if&quot;%temp3%&quot;equ &quot;1&quot; echo You Are A Cheater! <br>echo Level %lvl% Experience %exp%/%exptill% Armor %armor% <br>echo Health %hp%/100 Gold %gold% Potions%pots% <br>echo. <br>echo Where do you want to go? <br>echo. <br>echo 1.Outside the village <br>echo 2.Shop <br>echo 3.Healer <br>echo 4.Save Game <br>echo 5.Exit <br>echo. <br>set input=5 <br>set /p input=Enter: <br>if %input% equ 1 goto out <br>if %input% equ 2 goto shop <br>if %input% equ 3 goto healer <br>if %input% equ 4 goto save <br>if %input% equ 5 goto Main <br>goto home <br> <br>:shop <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> .````` `.``` <br>echo `````````` `------. ------.` <br>echo `` . .----------...---------. <br>echo `.......`` `.--------------------------` <br>echo .:----:` `.----.---------------- .---. +1 Level <br>echo `-------:-. `.` .--------------- `. <br>echo `-------------.` ---------------- <br>echo -:--------------- ---------------- <br>echo -::::::::::::::::: ---------------- <br>echo -::::::::::::::::/ ---------------- <br>echo .::::::::::::::::/ ---------------- <br>echo -:::::::::::::::: .------------... <br>echo ``..----::::::-` <br>echo ------------------------------------------------------------------------------ <br>echo ------------------------------------------------------------------------------ <br>echo ------------------------------------------------------------------------------ <br>echo What would you like to buy? <br>echo. <br>echo 1)Potion <br>echo 2)Armor <br>echo 3)+1Level <br>pause &gt;nul <br> <br>if %input% equ 1 goto buypotion <br>if %input% equ 2 goto buyarmor <br>if %input% equ 3 goto buylevel <br>goto home <br> <br>:buypotion <br>echo Yay! you bought a Potion <br>set pots=%pots% + 1 <br>set gold=%gold% - 30 <br>pause &gt;nul <br> <br>:: #ENEMY1 ######################################################### <br> <br>:out <br>set en1hp=40 <br>cls <br>echo You were attacked by a goblin! <br> <br> <br> <br> <br>color 0a <br>echo `.````-/+o+:..://+/. <br>echo `+ssyhhyhddhyhyyo/-` <br>echo `-odhhhdhdhhho-` <br>echo .oyddddmmh:` <br>echo `.ohdmmmmhy+/:-` <br>echo `+yhhhhhhyyyyhy.` <br>echo ``-yhyshyssyhddhdo-` <br>echo `.syhhhhhhhdddhyhd+. <br>echo `.oddhohhyhhhdd+/hddy` <br>echo `-hhdyhhysydddmo.yddm- <br>echo .:dmy+dhysyddddh-:ymm:` <br>echo `.smm/+ddhhddmddmo.smm/`` <br>echo `-dmm/hhddddmddhdh/dmmo`` <br>echo :hddhhdddy:/ddhddhddds` <br>echo .sdddddmo..`-yddddhos: <br>echo .:+hmmdd.````omdmd:` <br>echo .smmmo``` .dmmms <br>echo .`+ddmmo` ` -dmms <br>echo ./osdddmmd.` `sddd/ <br>echo .yhdddhys:-` -dmdddy.` <br>echo ``...`` --:/:. <br> <br> <br> <br>pause &gt;nul <br>goto fightgoblin <br> <br>:fightgoblin <br>cls <br> <br> <br> <br>echo `.````-/+o+:..://+/. <br>echo `+ssyhhyhddhyhyyo/-` <br>echo `-odhhhdhdhhho-` <br>echo .oyddddmmh:` <br>echo `.ohdmmmmhy+/:-` <br>echo `+yhhhhhhyyyyhy.` <br>echo ``-yhyshyssyhddhdo-` <br>echo `.syhhhhhhhdddhyhd+. <br>echo `.oddhohhyhhhdd+/hddy` <br>echo `-hhdyhhysydddmo.yddm- <br>echo .:dmy+dhysyddddh-:ymm:` <br>echo `.smm/+ddhhddmddmo.smm/`` <br>echo `-dmm/hhddddmddhdh/dmmo`` <br>echo :hddhhdddy:/ddhddhddds` <br>echo .sdddddmo..`-yddddhos: <br>echo .:+hmmdd.````omdmd:` <br>echo .smmmo``` .dmmms <br>echo .`+ddmmo` ` -dmms <br>echo ./osdddmmd.` `sddd/ <br>echo .yhdddhys:-` -dmdddy.` <br>echo ``...`` --:/:. <br>color 0b <br>echo You have %hp% health <br>echo Goblin has %en1hp% <br>echo. <br>echo 1.Attack <br>echo 2.Drink Potion <br>echo 3.Run Away! <br>set input=5 <br>set /p input=Enter: <br>if %input% equ 1 goto attackgoblin <br>if %input% equ 1 goto drinkpotgoblin <br>if %input% equ 1 goto runaway <br> <br>:attackgoblin <br>cls <br>if %armor% geq 5 goto attackgoblin2 <br>set /a en1hp=%en1hp% - (%power% + %weappower%) <br>if %en1hp% leq 0 goto killedgoblin <br>set /a hp=%hp% - (4 - %armor%) <br>if %hp% leq 0 goto death <br>goto fightgoblin <br> <br>:attackgoblin <br>cls <br>set /a en1hp=%en1hp% - (%power% + %weappower%) <br>if %en1hp% leq 0 goto killedgoblin <br>set /a hp=%hp% - (7 - %armor%) <br>if %hp% leq 0 goto death <br>goto fightgoblin <br> <br>:drinkpotgoblin <br>if %pots% Iss 1 ( <br>echo You don't have any potions <br>pause &gt;nul <br>goto fightgoblin <br>) <br>set /a hp = %hp% + 50 <br>set /a pots=%pots% - 1 <br>goto fightgoblin <br> <br>:killedgoblin <br>cls <br>echo You Killed Him! <br>echo you gained 7 exp and 6 gold! <br>set /a exp=%exp% + 7 <br>set /a gold=%gold% + 6 <br>pause &gt;nul <br>goto out2 <br> <br>:: # Enemy2############################################# <br> <br>:out2 <br>cls <br>echo 1.Go further <br>echo 2.Wait Here <br>echo 3.Go home <br>echo 4.Kill goblin again <br>set input=5 <br>set /p input=Enter: <br>if %input% equ 1 goto out3 <br>if %input% equ 1 goto out <br>if %input% equ 1 goto home <br>if %input% equ 4 goto attackgoblin2 <br>goto out2 <br> <br>:attackgoblin2 <br>set en1hp=40 <br>cls <br>echo You were attacked by a goblin! <br> <br> <br> <br> <br>color 0a <br>echo `.````-/+o+:..://+/. <br>echo `+ssyhhyhddhyhyyo/-` <br>echo `-odhhhdhdhhho-` <br>echo .oyddddmmh:` <br>echo `.ohdmmmmhy+/:-` <br>echo `+yhhhhhhyyyyhy.` <br>echo ``-yhyshyssyhddhdo-` <br>echo `.syhhhhhhhdddhyhd+. <br>echo `.oddhohhyhhhdd+/hddy` <br>echo `-hhdyhhysydddmo.yddm- <br>echo .:dmy+dhysyddddh-:ymm:` <br>echo `.smm/+ddhhddmddmo.smm/`` <br>echo `-dmm/hhddddmddhdh/dmmo`` <br>echo :hddhhdddy:/ddhddhddds` <br>echo .sdddddmo..`-yddddhos: <br>echo .:+hmmdd.````omdmd:` <br>echo .smmmo``` .dmmms <br>echo .`+ddmmo` ` -dmms <br>echo ./osdddmmd.` `sddd/ <br>echo .yhdddhys:-` -dmdddy.` <br>echo ``...`` --:/:. <br> <br> <br> <br>pause &gt;nul <br>goto fightgoblin <br> <br>:fightgoblin <br>cls <br> <br> <br> <br>color 0a <br>echo `.````-/+o+:..://+/. <br>echo `+ssyhhyhddhyhyyo/-` <br>echo `-odhhhdhdhhho-` <br>echo .oyddddmmh:` <br>echo `.ohdmmmmhy+/:-` <br>echo `+yhhhhhhyyyyhy.` <br>echo ``-yhyshyssyhddhdo-` <br>echo `.syhhhhhhhdddhyhd+. <br>echo `.oddhohhyhhhdd+/hddy` <br>echo `-hhdyhhysydddmo.yddm- <br>echo .:dmy+dhysyddddh-:ymm:` <br>echo `.smm/+ddhhddmddmo.smm/`` <br>echo `-dmm/hhddddmddhdh/dmmo`` <br>echo :hddhhdddy:/ddhddhddds` <br>echo .sdddddmo..`-yddddhos: <br>echo .:+hmmdd.````omdmd:` <br>echo .smmmo``` .dmmms <br>echo .`+ddmmo` ` -dmms <br>echo ./osdddmmd.` `sddd/ <br>echo .yhdddhys:-` -dmdddy.` <br>echo ``...`` --:/:. <br>color 0b <br>echo You have %hp% health <br>echo Goblin has %en1hp% <br>echo. <br>echo 1.Attack <br>echo 2.Drink Potion <br>echo 3.Run Away! <br>set input=5 <br>set /p input=Enter: <br>if %input% equ 1 goto attackgoblin <br>if %input% equ 1 goto drinkpotgoblin <br>if %input% equ 1 goto runaway <br> <br>:attackgoblin <br>cls <br>if %armor% geq 5 goto attackgoblin2 <br>set /a en1hp=%en1hp% - (%power% + %weappower%) <br>if %en1hp% leq 0 goto killedgoblin <br>set /a hp=%hp% - (4 - %armor%) <br>if %hp% leq 0 goto death <br>goto fightgoblin <br> <br>:attackgoblin <br>cls <br>set /a en1hp=%en1hp% - (%power% + %weappower%) <br>if %en1hp% leq 0 goto killedgoblin <br>set /a hp=%hp% - (7 - %armor%) <br>if %hp% leq 0 goto death <br>goto fightgoblin <br> <br>:drinkpotgoblin <br>if %pots% equ 1 ( <br>echo You don't have any potions <br>pause &gt;nul <br>goto fightgoblin <br>) <br>set /a hp = %hp% + 50 <br>set /a pots=%pots% - 1 <br>goto fightgoblin <br> <br>:killedgoblin <br>cls <br>echo You Killed Him! <br>echo you gained 7 exp and 6 gold! <br>set /a exp=%exp% + 7 <br>set /a gold=%gold% + 6 <br>pause &gt;nul <br>goto out2 <br> <br>:out3 <br>set en2hp=80 <br>cls <br>echo You have %hp% health <br>echo Skeleton has %en2hp% <br>echo. <br>echo 1.Attack <br>echo 2.Drink potion <br>echo 3.Run away <br>set input=5 <br>set /p input=Enter: <br>if %input% equ 1 goto attackskeleton <br>if %input% equ 2 goto drinkpotskeleton <br>if %input% equ 3 goto runaway <br>goto fightskeleton <br> <br>:attackskeleton <br>cls <br> <br> <br>::# Save ########################################################################## <br> <br>:save <br>if&quot;%temp3%&quot;equ&quot;1&quot;( <br>cls <br>echo You're a cheater, YOU NO SAVE <br>pause &gt;nul <br>goto stats <br>) <br>echo Saving <br>set /a temp2=(%hp% * %lvl% + %exp% * %exptill% + %weapprice% + %power% * %weappower%)/(%gold% + %pots% + %powergain%) <br>(echo hp=%hp%)&gt; QE%name%SAV.dll <br>(echo exp=%exp%)&gt;&gt; QE%name%%SAV.dll <br>(echo exptill=%exptill%)&gt;&gt; QE%name%SAV.dll <br>(echo gold=%gold%)&gt;&gt; QE%name%SAV.dll <br>(echo lvl=%lvl%)&gt;&gt; QE%name%SAV.dll <br>(echo power=%power%)&gt;&gt; QE%name%SAV.dll <br>(echo powergain=%powergain%)&gt;&gt; QE%name%SAV.dll <br>(echo weappower=%weappower%)&gt;&gt; QE%name%SAV.dll <br>(echo weapprice=%weapprice%)&gt;&gt; Qe%name%SAV.dll <br>(echo pots=%pots%)&gt;&gt; QE%name%SAV.dll <br>(echo armor=%armor%)&gt;&gt; QE%name%SAV.dll <br>(echo temp1=%temp1%)&gt;&gt; QE%name%SAV.dll <br>pause &gt;nul <br> <br>:stats <br>cls <br>echo %name% %lvl% <br>echo %exp%/%exptill% expierence <br>echo. <br>echo %hp%/100 health <br>echo %gold% gold <br>echo %pots% potions <br>echo. <br>echo Your power is %power% <br>echo Your weapon power is %weappower% <br>echo. <br>echo PRESS ANY KEY <br>pause &gt;nul <br>goto home <br> <br>here is a simple game I got the basis from someone else though not all
Aww. Well i still need help in batch programming but i can make a batch rpg flawlessly. And how am i suppose to add/take screenshots. Thats why i cant post anything.
This is HiPoweredHacker here and I would be honored to show you how to program some batch. To take screen shots use the &quot;prt sc&quot; button on your keyboard, that wil take a screen shot and copy it to the clipboard. so it can be pasted.
This is HiPoweredHacker here and I would be honored to show you how to program some batch. To take screen shots use the &quot;prt sc&quot; button on your keyboard, that wil take a screen shot and copy it to the clipboard. so it can be pasted.
Why Dont You Join <a href="http://www.instructables.com/group/BatchHomies/" rel="nofollow">Batch Homies Group</a>&nbsp;And Post Your Batch Instructables There?

About This Instructable

30,267views

7favorites

License:

More by doombot9000:Batch RPG Starting Piont 
Add instructable to: