loading
These commands you will eventually have to use in making a batch file/game.

Step 1: Color

In batch you can write color (number). Basically you can do any color, check this link for colors http://www.robvanderwoude.com/ntcolor.php I did not make this website.

EXAMPLE

@echo off
TITLE Game

:new
Color 5a


The color would be Purple and Light Green

Step 2: Cls/Clear Screen

Cls is a command that Clears Your Screen of code, i usually use it after i make a new category.

EXAMPLE:

:new
Cls
Echo.
Echo Hello World
Echo.

Step 3: Input Commands

To use input commands start by making a way in your code to select.

EXAMPLE:

: Menu
Echo.
Echo hello world
Echo.
Echo 1) Continue
Echo 2) Exit
Echo.
Set /p c=Enter

If %c% == "1" goto Game
If %c% == "2" goto Exit

What this does is if the user of the command types 1 he/she will go to the Game, if he/she types 2 he/she will go to the exit screen.

C means input basically. So the last 2 lines of code mean If input equals 1 go to game.

Step 4: Leq and Geq

Leq means "Less or Equal To". Geq means "Greater or Equal To". These two words of command can help create shops for games, or making enemies stronger.

EXAMPLE:

:Shop
Cls
Echo.
Echo 1) Machete 5$
Echo.
Set /p c=Enter:

If %c% == "1" goto machete

:Machete
Cls
If %money% geq 5 set Dmg +=5 (
Goto Shop
)
If %money% leq 4 goto NotEnoughMoney

About This Instructable

452views

12favorites

License:

Bio: I have a website, and a so called clan! I like coding, i specialize in batch coding and am working on learning java coding! I ... More »
More by ItzMynow:Special Commands In Batch Starting To Code A Batch Code RPG 
Add instructable to: