Starting to Code a Batch Code RPG

1,874

23

5

Introduction: Starting to Code a Batch Code RPG

This instructable will teach you how to start coding in batch!

Step 1: How to Make a Batch File

Simply to make a batch file open notepad or notepad ++ (https://notepad-plus-plus.org) . Once you have opened one of these notepads you'll need to hit file, then save as, you can save your document anywhere. But before you save it click save as type then all files. Then you must save the document as SOMETHING.bat (SOMETHING is your choice)

Step 2: Setting Up Your Code

Since you have saved your document we can now start writing our code. On the first line i recommend typing @echo off , what this does is if you type in echo hello world it will basically show the code. (Echo will be explained.) On the second line type TITLE Title Name , again Title Name can be any word or group of words

Step 3: Categories

To make a category in batch code, you will type :Word (Word being any word.) Then if you write 'echo.' On the line it will skip a line. Then if you write echo Hello World the code will display Hello World.

Step 4: CLS

Now that you know what echo is we can start introducing more vocabulary. A feature called 'cls' clears the screen existing so after every category write cls so basically

:new

cls

echo Hello World!

Step 5: Tips, Tricks, Hints.

TIP 1:

While coding make sure to have each line of code on a different line. For Example:

:Hello

cls

echo.

echo Hello World

Notice how each line of code is on its own line.

TIP 2:

Make sure to not be frustrated if your code isn't working, maybe you just need a little break. Or you may need to tweak some of your code lines.

Step 6: Real Batch Code Example (By, Me!)

This Code, Is Not Done... Files In Image Section.

Be the First to Share

    Recommendations

    • Puzzles Speed Challenge

      Puzzles Speed Challenge
    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020

    5 Discussions

    0
    ItzMynow
    ItzMynow

    5 years ago on Introduction

    Ask questions here in this comment section! I'll surely answer them!

    0
    Governor Keagan
    Governor Keagan

    4 years ago

    Nice! Do you have any complete games.

    0
    cacj131
    cacj131

    5 years ago

    Nice job! Make more.

    0
    seamster
    seamster

    5 years ago on Introduction

    Welcome to instructables! Thanks for sharing your first project with us!