User talk:Cuss0011

Batch Game Programming lesson 1- by Cuss0011 Batch Game Programming: LESSON 1 MAKING A RPG IN BATCH ____________________________________________ when starting a batch program always remember to start of with @echo off.

step 1: ''@echo off TITLE RPG
 * Menu

cls echo    RPG echo ____________ echo 1. start echo 2. exit echo ____________ echo DEV. Cuss0011 set /p input= if %input% == 1 goto New if %input% == 2 exit''


 * Menu - What this does is makes a thing called a cell script and everything that is in between that and the next cell script is on section. the :menu can be anything as long as it has a semi-colon before it, which is this :

cls - what cls does is clears the screen of previous text

echo - what the command echo does is prints what ever text is after that on that line example: echo hello what that will print is: hello

set /p input= - what this does is sets a choice the word input can be anything

if %input% == 1 goto New - what this does is if 1 is typed in as input it go tos the cell script New which we haven't created yet but we will

step 2:
 * New

set hp=100 set power=4 set powergain=2 set weappower=2 set exp=0 set exptill=60 set lvl=1

set hp=100 - what this does is sets the variable health set power=4 - sets the players power set exp=0 - sets the variable exp which means experience set lvl=1 - sets the variable lvl=1 lvl stand for level

and I think you cna figure out the rest

next lesson on page 2