Introduction: The BRPG
I have always been interested in programming, And using batch programming has opened new windows for me. Today, I'll be showing you how to make a fully operational batch programmed RPG.
Step 1: Getting the Requierments
- A Windows 10, 8, or 7 computer with notepad.exe and cmd.exe installed
- A decent amount of time
- Some batch coding experience
Step 2: Open Notepad
Step 3: Set Up the Code
In Notepad, type in the following(*=changeable)
this will be the heading of your code.
Step 4: Set Up the Stats
The next thing you need to do set the starting stats (HP, MP, AP, Armor, Weapons, Items). Add the following to your code(*=changeable)
set /p name=What is your name?
echo Welcome %name%, choose your class.
set /p class= Type option
if "%class%"=="*Ninja" goto act_1_ninja
if "%class%"=="*Assassin" goto act_1_assassin
if "%class%"=="*Warrior" goto act_1_warrior
if "%class%"=="*Mage" goto act_1_mage
if not "%class%"=="*Ninja" goto err
if not "%class%"=="*Assassin" goto err
if not "%class%"=="*Warrior" goto err
if not "%class%"=="*Mage" goto err
Step 5: Set Up the Acts for Your Story
Next you need to set up your story. For each act you make use the following base code. Repeat if needed.(*=changeable)
echo *insert act text here
echo *enter choice
echo *enter choice
set /p *action=Type option
if "%*action%"=="*choice" goto act_*1-1_*ninja
Step 6: (Optional)Set Up the GameOver Screen
If you feel like setting up a battle mechanic, then you'll need a GameOver screen. Here is a base code for one. 99% of it is changeable
echo GAME OVER
echo | x x |
echo | _ |
remember, all of this is changeable and optional.
Step 7: Saving Your Game
Name your file what ever you want, but make sure to add .bat at the end and set the file type to "All Files" so that it doesn't save as a .txt document (.txt=text document). Viola! You have Batch RPG that is only playable on Windows computers. Thank you for viewing this Instructable. If you have any questions, feel free to e-mail me at email@example.com. See Ya Next Time!