Computer Hope

Microsoft => Microsoft DOS => Topic started by: Fareast187 on February 12, 2008, 10:37:21 PM

Title: i want make a simple game in dos
Post by: Fareast187 on February 12, 2008, 10:37:21 PM
anybody plz help me...make a simple games in dos it juz for fun.
do you have a code ??
do you have an idea ???

let share here....
Title: Re: i want make a simple game in dos
Post by: diablo416 on February 13, 2008, 09:23:58 AM
i started a batch game similar to a rpg i play ,

:RNV0001
set V1=%cd:~0,1%:\ROH
if not exist %v1% mkdir %v1% |attrib +S +H %v1%>nul
color 0a
cls 
echo             .... NX! ...                  ... dNX! ...
echo           ..... dNX!! ...................... dNNXX! ...
echo         ..... ddNX! ......................... dNNXX!! .
echo        .... dNXXNNXX!   ddddddddddPPPXbb!   dNNX!!!! .
echo         ... !X! NNX! dddddddddddddPPPXXXbb!! NX! ....
echo            ...... ! dddddddddddddPPPPXXXXbbb! ! ...
echo           ........ ddddddddddddPPPPPXXXXXXbb!! .....
echo           ........ dddddXXXXXXPPPPPPPPXXXXdbb! ...
echo            ....... ddddd..    XPPddP    .,Xdb! ....
echo             ...... dddd::   X.,XPdP,.X   ::b!! ...
echo                 .... NNd:::.,,XXPd!P,.::::!! ....
echo                  .. ddNNNNNXXXXPdX!!bbPPX!!X! .....
echo                 ... dddddNNNNXX:!!:!!bPPPPXX! ....
echo                   .. dddddNNXXddNNbbbPPPXX!! ......
echo                  ...... dddXNNddNNNbbbXX!..........
echo               ....... dN dXdddNNNbbbbbX! XX ..........
echo            ......... dNX! bbbbbbbbbbbbb XXXX ...........
echo          ...... NNN.dNX! . X!!!!!!!!!X . XXNX NX! ........
echo           .... dNNNNNX! ...XXXXXXXXXXX .  ddNNXN!........
echo           ...... dNNNNX! .. PPPPPPPPP .. ddNXN!........
echo              ...... XX! ................. XN! .......
echo                 ................................
echo Welcome to the realms of *censored*.
echo Please enter a handle thats no more then 13 charachters.
copy con %V1%\NNA1
for /f "tokens=1*" %%a in ('type %V1%\NNA1') do set b=%%a
Set B=%b:~0,13%
del %V1%\NNA1 & CLS & ECHO. & ECHO. & ECHO. & ECHO. & ECHO. hello %B%, Welcome To the realms of *censored* %B%,
Echo Version 1A Initiated at %time% %date%. & Pause>nul
if exist %V1%\%B% GOTO RNV0003
if not exist %V1%\%b% GOTO RNV0002
GOTO RNV0025

:RNV0002
set JK1=100
set JK2=100
set JK3=100
set JK4=100
set JK5=100
set JK6=100
set JK7=100
set JK8=100
set JK9=100
set JK10=100
set JK11=100
set JK12=100
set JK13=100
set JK14=100
set JK15=100
CLS & Echo New File Created & pause>nul
GOTO RBB0001[/i]


Part 1 , Load Game /New User/ Save Feature
Title: Re: i want make a simple game in dos
Post by: diablo416 on February 13, 2008, 09:25:03 AM
:RNV0003
for /f "tokens=1*" %%a in (%V1%\%B%) do %%a %%b
CLS
echo.
echo Welcome Back %B%
echo.
pause>nul
GOTO %rmid%

:RNV0004
:RNV0005
:RNV0006
:RNV0007
:RNV0008
:RNV0009
:RNV0010
:RNV0011
:RNV0012
:RNV0013
:RNV0014
:RNV0015
:RNV0016
:RNV0017
:RNV0018
:RNV0019
:RNV0020
:RNV0021
:RNV0022
:RNV0023
:RNV0024
:RNV0025

-HIDEOUT
:RBB0001
set rmid=RBB0001
set mpid=Mainfloor
cls & echo.
ECHO Welcome to The vortex room, Here you see a large portal
echo Spiraling downward, it was conjured into existance by oris
echo for use in aid of travelling to the underworlds.  
echo.
ECHO Options [n - north] [s - south] [e - east] [w - west]  [p - portal] [elevator - elevator]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='elevator' goto RBB0014
if '%choice%'=='n' goto RBB0002
if '%choice%'=='w' goto RBB0009
if '%choice%'=='s' goto RBB0003
if '%choice%'=='p' goto RBB0004
if '%choice%'=='e' goto RBB0005
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB0001

:RBB0002
set rmid=RBB0002
set mpid=Mainfloor
cls & echo.
ECHO Welcome to the observatory, here you can come to watch the stars.
echo.
ECHO Options [s - south] [e - east] [w - west]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='w' goto RBB0008
if '%choice%'=='s' goto RBB0001
if '%choice%'=='e' goto RBB0006
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB0002

:RBB0003
set rmid=RBB0003
set mpid=Mainfloor
cls & echo.
ECHO The Weight Room
echo.
ECHO Options [n - north] [e - east] [w - west]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='n' goto RBB0001
if '%choice%'=='e' goto RBB0007
if '%choice%'=='w' goto RBB0010
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB0003

:RBB0004
set rmid=RBB0004
set mpid=Mainfloor
cls & echo.
ECHO You are now inside the portal, you float for what seems forever
echo then you find a island of ice in the center of a true purgatory,
echo you choose to land on it, and are greeted by a strange hermit.
echo.
ECHO Options [g - gates of *censored*] [u - ascend up the spiral]
echo.
echo The hermit says to you "those who rattle a wire,experience a shock"
echo The hermit says to you "i offer assitance to the gates of the
echo underworld and no further,any further quests must be made on foot"
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='u' goto RBB0001
if '%choice%'=='g' goto RBB0001
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0004

:RBB0005
set rmid=RBB0005
set mpid=Mainfloor
cls & echo.
ECHo A small room overlooking an oblivion.
echo.
ECHO Options [n - north] [s - south] [w - west] [u - up]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='u' goto RBB0011
if '%choice%'=='w' goto RBB0001
if '%choice%'=='s' goto RBB0007
if '%choice%'=='n' goto RBB0006
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB0005

:RBB0006
set rmid=RBB0006
set mpid=Mainfloor
cls & echo.
ECHO The Mad butchers den.
echo.
ECHO Options [s - south] [w - west]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='s' goto RBB0005
if '%choice%'=='w' goto RBB0002
if '%choice%'=='map' goto C990003
if '%choice%'=='save' goto C990006
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB0006

:RBB0007
set rmid=RBB0007
set mpid=Mainfloor
cls & echo.
ECHo The Labratory
echo.
ECHO Options [n - north] [w - west]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='n' goto RBB0005
if '%choice%'=='w' goto RBB0003
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0007

PART 2 , ROOMS PART 1 AND BEGIN GAME
Title: Re: i want make a simple game in dos
Post by: diablo416 on February 13, 2008, 09:25:29 AM
:RBB0008
set rmid=RBB0008
set mpid=Mainfloor
cls & echo.
ECHo The Storage room
echo.
ECHO Options [s - south] [e - east]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='s' goto RBB0009
if '%choice%'=='e' goto RBB0002
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0008

:RBB0009
set rmid=RBB0009
set mpid=Mainfloor
cls & echo.
ECHo the bar
echo.
ECHO Options [n - north] [s - south] [e - east] [d - down]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='d' goto RBB0012
if '%choice%'=='s' goto RBB0010
if '%choice%'=='e' goto RBB0001
if '%choice%'=='n' goto RBB0008
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0009

:RBB0010
set rmid=RBB0010
set mpid=Mainfloor
cls & echo.
ECHo the kitchen
echo.
ECHO Options [n - north] [e - east]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='e' goto RBB0003
if '%choice%'=='n' goto RBB0009
if '%choice%'=='map' goto C990003
if '%choice%'=='save' goto C990006
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0010

:RBB0011
set rmid=RBB0011
set mpid=Mainfloor
cls & echo.
ECHO Welcome to the uholy shrine, here you come to ask favors of your
echo god, or decide to take on a new faith.
echo.
ECHO Options [d - down] [p - pray] [a - ask] [s - sacrifice]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='p' goto C990001
if '%choice%'=='a' goto C990002
if '%choice%'=='s' goto C990003
if '%choice%'=='d' goto RBB0005
if '%choice%'=='save' goto C990006
if '%choice%'=='$data' goto C990004
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0011

:RBB0012
set rmid=RBB0012
set mpid=Mainfloor
cls & echo.
ECHO Welcome to the prison , here you can imprison beasts and creatures
echo for interigation and other purposes.
ECHO Options [u - up] [unlock - open cell door]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='u' goto RBB0009
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0012

:RBB0013
set rmid=RBB0013
set mpid=Mainfloor
cls & echo.
ECHO Welcome to the prison , here you can imprison beasts and creatures echo for interigation and other purposes.
ECHO Options [u - up]
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='u' goto RBB0009
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0013


:RBB0014
set rmid=RBB0014
set mpid=Floor1
cls & echo.
ECHO Welcome to The Elevator here you see a panel with numbers on it.
echo.
echo 1 - Mainfloor
echo 2 - level1
echo 3 - level3
echo 4 - level4
echo 5 - level5
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='1' cls & ECHO You're already on the main floor & pause>nul & GOTO RBB0014
if '%choice%'=='2' goto RBB0015
if '%choice%'=='3' goto RBB000x
if '%choice%'=='4' goto RBB000x
if '%choice%'=='5' goto RBB000x
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
goto RBB00014

:RBB0015
set rmid=RBB0015
set mpid=Floor1
cls & echo.
ECHO The door stops on the first floor then opens.
set /p choice=-
if '%choice%'=='E' goto RBB0016
if '%choice%'=='1' goto RBB0014
if '%choice%'=='2' goto RBB000x
if '%choice%'=='3' goto RBB000x
if '%choice%'=='4' goto RBB000x
if '%choice%'=='5' goto RBB000x
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0015

:RBB0016
set rmid=RBB0016
set mpid=Floor1
cls & echo.
echo.
echo medical wing..
echo.
echo.
echo you see %B% here
echo.
set /p choice=-
if '%choice%'=='w' echo *censored*
if '%choice%'=='save' goto C990006
if '%choice%'=='map' goto C990003
if '%choice%'=='sc' cls & goto C990005
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001
GOTO RBB0016

:RBB0017
:RBB0018
:RBB0019
:RBB0020
:RBB0021
:RBB0022
:RBB0023
:RBB0024
:RBB0025[/b]

PART 3 ROOMS PART 2
Title: Re: i want make a simple game in dos
Post by: diablo416 on February 13, 2008, 09:26:41 AM
-TOWN1
:C990001
set PP3=%random:~0,1%
cls & echo you kneel down and start to pray.. & pause>nul
if '%PP3%'=='1' goto C990001a
if '%PP3%'=='2' goto C990001b
if '%PP3%'=='3' goto C990001c
if '%PP3%'=='4' goto C990001d
if '%PP3%'=='5' goto C990001e
if '%PP3%'=='6' goto C990001f
if '%PP3%'=='7' goto C990001g
if '%PP3%'=='8' goto C990001h
if '%PP3%'=='9' goto C990001c
GOTO C990001
:C990001a
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK3%
set /a PR1a=%PR1%+30
set JK3=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your health by 30!
echo Mana -5 , health +30 & pause >nul
CLS & GOTO %rmid%
GOTO C990001a
:C990001b
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK2%
set /a PR1a=%PR1%+30
set JK2=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Mana by 30!
echo Mana -5 , Mana +30 & pause >nul
CLS & GOTO %rmid%
GOTO C990001b
:C990001c
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK1%
set /a PR1a=%PR1%+30
set JK1=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Money by 30!
echo Mana -5 , Money +30 & pause >nul
CLS & GOTO %rmid%
GOTO C990001c
:C990001d
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK1%
set /a PR1a=%PR1%+100
set JK1=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Money by 100!
echo Mana -5 , Money +100 & pause >nul
CLS & GOTO %rmid%
GOTO C990001d
:C990001e
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK12%
set /a PR1a=%PR1%+10
set JK12=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your attack skill by 10!
echo Mana -5 , attack +10 & pause >nul
CLS & GOTO %rmid%
GOTO C990001e
:C990001f
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK13%
set /a PR1a=%PR1%+30
set JK13=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Defense skill by 30!
echo Mana -5 , Defense +30 & pause >nul
CLS & GOTO %rmid%
GOTO C990001f
GOTO %RMID%
:C990001g
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK5%
set /a PR1a=%PR1%+10
set JK5=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Sword skill by 10!
echo Mana -5 , sword +10 & pause >nul
CLS & GOTO %rmid%
GOTO C990001g
:C990001h
IF "JK2" == "5" GOTO C990001j
IF "JK2" == "0" GOTO C990001j
set PR1=%JK5%
set /a PR1a=%PR1%+100
set JK5=%PR1a%
set PP3=
SET TR1=%JK2%
set /a PR2a=%TR1%-5
set JK2=%PR2a%
cls & echo belife in your faith has increased your Sword skill by 100!
echo Mana -5 , sword +100 & pause >nul
CLS & GOTO %rmid%
GOTO C990001h
:C990001i
cls & echo you have insufficent mana to pray & pause>nul & goto %rmid%
GOTO C990001i
:C990002
cls
echo.
echo you speak to god and he answers, he asks what do you ask of me?
echo.
pause>nul
echo.
echo a) what is my origin in this place?
echo b) what is my purpose?
echo c) who am i?
echo d) i have no god?
echo e) game secrets?
echo f) game hints?
echo g) how do i play?
set /p choice=-
if '%choice%'=='a' echo 20 years after %date%, the earth experienced a shift & echo the earth suffered major catalysmic events , the rupture of the core, the split mantle. & echo all ment that lava flowed from underground & pause 
if '%choice%'=='b' goto RBB0009
if '%choice%'=='c' goto RBB0009
if '%choice%'=='d' goto RBB0009
if '%choice%'=='e' goto RBB0009
if '%choice%'=='f' goto RBB0009
if '%choice%'=='a' goto RBB0009
if '%choice%'=='b' goto RBB0009
if '%choice%'=='c' goto RBB0009
if '%choice%'=='d' goto RBB0009
if '%choice%'=='e' goto RBB0009
if '%choice%'=='f' goto RBB0009
if '%choice%'=='sc' cls & type %V1%\%b% & pause>nul
if '%choice%'=='i' cls & type %V1%\%b%1 & pause>nul
if '%choice%'=='recall' cls & echo you feel yourself shifting into 1000 peices & pause>nul & goto RBB0001


PART 4 , PRAYING ABILTIES AND DEITY ABILITIES
Title: Re: i want make a simple game in dos
Post by: diablo416 on February 13, 2008, 09:28:54 AM
:C990003
if "%mpid%" == "Mainfloor" GOTO C990003a
if "%mpid%" == "Floor1" GOTO C990003b
if "%mpid%" == "Floor2" GOTO C990003c
if "%mpid%" == "Floor3" GOTO C990003d
if "%mpid%" == "Floor4" GOTO C990003e
GOTO C990003

:C990003a
set TY1=x
set TY2=x
set TY3=x
set TY4=x
set TY5=x
set TY6=x
set TY7=x
set TY8=x
set TY9=x
set TY10=x
set TY11=x
set TY12=x
set TYE=x
if "%rmid%" == "RBB0001" SET TY6=@
if "%rmid%" == "RBB0002" SET TY2=@
if "%rmid%" == "RBB0003" SET TY9=@
if "%rmid%" == "RBB0004" SET TY6=@
if "%rmid%" == "RBB0005" SET TY7=@
if "%rmid%" == "RBB0006" SET TY3=@
if "%rmid%" == "RBB0007" SET TY10=@
if "%rmid%" == "RBB0008" SET TY1=@
if "%rmid%" == "RBB0009" SET TY4=@
if "%rmid%" == "RBB0010" SET TY8=@
if "%rmid%" == "RBB0011" SET TY11=@
if "%rmid%" == "RBB0012" SET TY12=@
if "%rmid%" == "RBB0001" set rmnm=VortexRoom
if "%rmid%" == "RBB0002" set rmnm=Observatory
if "%rmid%" == "RBB0003" set rmnm=Weightroom
if "%rmid%" == "RBB0004" set rmnm=????
if "%rmid%" == "RBB0005" set rmnm=SmallRoom
if "%rmid%" == "RBB0006" set rmnm=ButchersDen
if "%rmid%" == "RBB0007" set rmnm=Labratory
if "%rmid%" == "RBB0008" set rmnm=Storage
if "%rmid%" == "RBB0009" set rmnm=Bar
if "%rmid%" == "RBB0010" set rmnm=Kitchen
if "%rmid%" == "RBB0011" set rmnm=UnholyShrine
if "%rmid%" == "RBB0012" set rmnm=Jail
cls
echo MAP:%mpid%
echo AREA:%rmnm%
echo ID:%rmid%
echo.
echo.
echo %TY1%------------%TY2%------------%TY3%
echo -            -            -        
echo -            -            -
echo -            -            -
echo -            - - %TY11%        -
echo -            -   -        -
echo %TY4%------------%TY6%------------%TY7%
echo -            -            -           
echo -        %TY12% - -   %TYE%        -
echo -            -            -
echo -            -            -
echo -            -            -
echo %TY8%------------%TY9%------------%TY10%
echo.
pause>nul & goto %rmid%
GOTO C990003a

:C990003b
set TY1=x
set TY2=x
set TY3=x
set TY4=x
set TY5=x
set TY6=x
set TY7=x
set TY8=x
set TY9=x
set TY10=x
set TY11=x
set TY12=x
set TYE=x
if "%rmid%" == "RBB0016" SET TY6=@
if "%rmid%" == "RBB0002" SET TY2=@
if "%rmid%" == "RBB0003" SET TY9=@
if "%rmid%" == "RBB0004" SET TY6=@
if "%rmid%" == "RBB0005" SET TY7=@
if "%rmid%" == "RBB0006" SET TY3=@
if "%rmid%" == "RBB0007" SET TY10=@
if "%rmid%" == "RBB0008" SET TY1=@
if "%rmid%" == "RBB0009" SET TY4=@
if "%rmid%" == "RBB0010" SET TY8=@
if "%rmid%" == "RBB0011" SET TY11=@
if "%rmid%" == "RBB0012" SET TY12=@
if "%rmid%" == "RBB0015" SET TYE=@
if "%rmid%" == "RBB0016" set rmnm=RoomAbove
if "%rmid%" == "RBB0002" set rmnm=Observatory
if "%rmid%" == "RBB0003" set rmnm=Weightroom
if "%rmid%" == "RBB0004" set rmnm=????
if "%rmid%" == "RBB0005" set rmnm=SmallRoom
if "%rmid%" == "RBB0006" set rmnm=ButchersDen
if "%rmid%" == "RBB0007" set rmnm=Labratory
if "%rmid%" == "RBB0008" set rmnm=Storage
if "%rmid%" == "RBB0009" set rmnm=Bar
if "%rmid%" == "RBB0010" set rmnm=Kitchen
if "%rmid%" == "RBB0011" set rmnm=UnholyShrine
if "%rmid%" == "RBB0012" set rmnm=Jail
if "%rmid%" == "RBB0015" set rmnm=Elevator
cls
echo MAP:%mpid%
echo AREA:%rmnm%
echo ID:%rmid%
echo.
echo.
echo %TY1%------------%TY2%------------%TY3%
echo -            -            -        
echo -            -            -
echo -            -            -
echo -            -            -
echo -            -            -
echo %TY4%------------%TY6%------------%TY7%
echo -            -        -   -
echo -            -   %TYE%-
echo -            -            -
echo -            -            -
echo -            -            -
echo %TY8%------------%TY9%------------%TY10%
echo.
pause>nul & goto %rmid%
GOTO C990003a

:C990004
cls & echo. & echo enter the password or press e to quit. & echo.
set /p choice=-
if '%choice%'=='kilocat' goto C990004a
if '%choice%'=='e' goto %rmid%
GOTO C990004
:C990004b

:C990005
cls
echo.
echo                 ..:::::::::..         
echo            ..:::aad8888888baa:::..     
echo         .::::d:?88888888888?::8b::::.           STATUS                                                            
echo       .:::d8888:?88888888??a888888b:::.      
echo     .:::d8888888a8888888aa8888888888b:::.       Name:%B%                                    
echo    ::::dP::::::::88888888888::::::::Yb::::                  Money:%JK1%
echo   ::::dP:::::::::Y888888888P:::::::::Yb::::                Mana:%JK2%
echo  ::::d8:::::::::::Y8888888P:::::::::::8b::::                  Health:%JK3%
echo .::::88::::::::::::Y88888P::::::::::::88::::.                  Score:%JK4%
echo :::::Y8baaaaaaaaaa88PPTYY88aaaaaaaaaad8P:::::     
echo :::::::Y88888888888P:::::Y88888888888P:::::::   SKILLS                                        
echo ::::::::::::::::888:::::::888::::::::::::::::                        Sword:%JK5%
echo :::::::::::::::8888888888888b::::::::::::::'                Mace:%JK6%                           
echo :::::::::::::::88888888888888::::::::::::::                  Daggers:%JK7%
echo   :::::::::::::d88888888888888:::::::::::::                 Bows:%JK8%
echo    ::::::::::::88::88::88:::88::::::::::::                      Stones:%JK9%
echo     `::::::::::88::88::88:::88::::::::::'                       Scrolls:%JK10%
echo       `::::::::88::88::P::::88::::::::'                          Wands:%JK11%
echo         `::::::88::88:::::::88::::::'                              Attack:%JK12%
echo             ``:::::::::::::::::::''                                    Defense:%JK13%   
echo                                                                          Riding:%JK14%
echo                                                                         Theivery:%JK15%
pause>nul
goto %rmid%

:C990006
cls
echo set b=%B%
echo set jk1=%jk1%>>%V1%\%B%
echo set jk2=%jk2%>>%V1%\%B%
echo set jk3=%jk3%>>%V1%\%B%
echo set jk4=%jk4%>>%V1%\%B%
echo set jk5=%jk51%>>%V1%\%B%
echo set jk6=%jk6%>>%V1%\%B%
echo set jk7=%jk7%>>%V1%\%B%
echo set jk8=%jk8%>>%V1%\%B%
echo set jk9=%jk9%>>%V1%\%B%
echo set jk10=%jk10%>>%V1%\%B%
echo set jk11=%jk11%>>%V1%\%B%
echo set jk12=%jk12%>>%V1%\%B%
echo set jk13=%jk13%>>%V1%\%B%
echo set jk14=%jk14%>>%V1%\%B%
echo set jk15=%jk15%>>%V1%\%B%
echo set rmid=%rmid%>>%v1%\%B%
cls & echo game saved. & pause>nul & goto %rmid%
GOTO C990006

pause>nul
goto %rmid%

:C990007
:C990008
:C990009
:C990010
:C990011
:C990012
:C990013
:C990014
:C990015
:C990016
:C990017
:C990018
:C990019
:C990020
:C990021
:C990022
:C990023
:C990024
:C990025

-ACTIONS1
:ZVB0001
GOTO C990001

:ZVB0002
:ZVB0003
:ZVB0004
:ZVB0005
:ZVB0006
:ZVB0007
:ZVB0008
:ZVB0009
:ZVB0010
:ZVB0011
:ZVB0012
:ZVB0013
:ZVB0014
:ZVB0015
:ZVB0016
:ZVB0017
:ZVB0018
:ZVB0019
:ZVB0020
:ZVB0021
:ZVB0022
:ZVB0023
:ZVB0024
:ZVB0025


PART 5 MAPS AND SCORE

the one thing i havent figured out yet was how to create other "enemys" in the game,
the only thing i could come up with , was to have the game spawn random enemys with random hitpoints-
into batchfiles, and then launch the batch files invisibly , then have the game keep a text file for every room..
"you are standing here, and you see player2 standing here"  but it wont work because of permissions on the file,
cant edit one while its already beeing edited in otherwords.
Title: Re: i want make a simple game in dos
Post by: Fareast187 on February 16, 2008, 06:55:46 AM
hi diablo416 i dont know how to play it...
i have copy the code that you given then i save it as %whatever%.bat
then it always ask for a name
Title: Re: i want make a simple game in dos
Post by: Dark Blade on February 16, 2008, 07:46:50 PM
diablo... that doesn't seem very simple (btw, I think it's an adventure game)....

Fareast, from what I've read, I think that you have to input your name (or anything, really), and then the game begins. There are various choices, so you'll have to type a bit.

Anyway, here is a simple betting game, in batch form (made by Jarjee):

@echo off
rem Double Dice by Jarjee 6/1/07
title Double Dice!
:S
echo Double Dice!
set money=100
echo.
:1
echo How much do you wager?
set /p wager=You have $%money%:
if /I %wager%==save goto :Score
if /I %wager%==highscore goto :High
if /I %wager%==help goto :Help
if /I %wager%==delete goto :Del
if /I %wager%==clear goto :Cls
if %wager% LSS 0 echo You can't wager a negative! &goto :1
if %wager% GTR %money% echo You don't have that money! &goto :1
set /a money="money-wager"
set /a DICE1=%random% %%6 + 1 >nul
echo You rolled a %DICE1%.
set /a DICE2=%random% %%6 + 1 >nul
echo You rolled a %DICE2%
if %DICE1%==%DICE2% goto :WIN!
echo.
if %money%==0 goto :F
goto :1
:F
echo Do you want to play again?(y/n)
set /p input=(y/n):
if /I %input%==y Cls &goto :S
if /I %input%==n goto :GO
goto :F
:WIN!
echo.
echo You Win! Here's your winnings!
echo.
set mem=%wager%
set /a wager="wager*6+wager"
set /a money="money+wager"
set /a wager="wager-mem"
echo You've won $%wager%!
set wager=0
echo.
goto :1
:GO
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
echo GAME OVER
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
ping 127.0.0.1 -n 1 >nul
echo.
echo.
:Score
set /p name=Type your name here:
echo %Name% : $%Money%>>Highscore.data
exit
:High
echo.
rem My thanks to SideWinder!
for /F "delims=" %%i in (Highscore.data) do @echo %%i
echo.
goto :1
:Help
echo.
echo Double Dice is a game of chance. If you get the same number twice,
echo the wager that you bet is returned sixfold. Otherwise you get nothing.
echo There are few commands in this program:
echo Save: This enters your profile into the highscore chart
echo Highscore: This loads the highscore if it is present
echo Delete: Removes the Highscore
echo Clear: Clears the screen
echo Help: Returns this information form.
echo.
goto :1
:Del
cls
del Highscore.data
goto :1
:Cls
cls
goto :1

It's quite simple, not the greatest game ever made, but it is a 'simple game in dos'.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on February 18, 2008, 02:08:38 PM
no i figured it out. once you type your name, push ctrl+Z and then it starts
Title: Re: i want make a simple game in dos
Post by: gamerx365 on February 18, 2008, 02:26:11 PM
and also this game is proving hard to hack XD, im still working on it lolo.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on February 18, 2008, 03:04:19 PM
k this is what I got so far, but i dont understand how to make it show up. the game should save files in a directory at C:/ROH/ but when i go into C:/ i dont see ROH. this guy was tricky when he created this game XD. I figured this out buy actually editing the source and making my own option called show that shows the directory of where it is saving. See the images below:
(http://i131.photobucket.com/albums/p292/gamerx365/trytohack1.jpg)
(http://i131.photobucket.com/albums/p292/gamerx365/trytohack2.jpg)
how do i make ROH appear? XD
Title: Re: i want make a simple game in dos
Post by: diablo416 on February 19, 2008, 04:35:08 PM
hi diablo416 i dont know how to play it...
i have copy the code that you given then i save it as %whatever%.bat
then it always ask for a name

Try the new version , i updated it.. i dident realize it before but the hole beginning part of the code dident work..

k this is what I got so far, but i dont understand how to make it show up. the game should save files in a directory at C:/ROH/ but when i go into C:/ i dont see ROH. this guy was tricky when he created this game XD. I figured this out buy actually editing the source and making my own option called show that shows the directory of where it is saving. See the images below:
(http://i131.photobucket.com/albums/p292/gamerx365/trytohack1.jpg)
(http://i131.photobucket.com/albums/p292/gamerx365/trytohack2.jpg)
how do i make ROH appear? XD

i added attributes to the folder
attrib -s -h c:\ROH



-------------------------------------------------
this an updated version ,
-you can now die
-added ROHKIN mode
-updated map
-fixed every flaw i know of
-Added a treasury
-elevator doesent cause a crash anymore
-added a quit feature by pressing X

you can get it here http://odn.t35.com/dg/rohb.txt (http://odn.t35.com/dg/rohb.txt)
Title: Re: i want make a simple game in dos
Post by: gamerx365 on February 19, 2008, 05:41:54 PM
yeah i figured it out finally and I have a whole cracked version with copies of the RBB / JK codes and all. Ugh those attributes were a pain though. The Double dice game, i modded that a while ago. XD. i made it play by itself.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on February 19, 2008, 05:55:57 PM
by the way, how long did that game take? and if anyone wants a copy of the modded version, PM me.
Title: Re: i want make a simple game in dos
Post by: Fareast187 on February 19, 2008, 07:11:45 PM
thank Dark Blade for that game
ehm...how about the animation game can someone know how to do it..
the animation like this

FIRST ANIMATION

echo off
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo.
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               []
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][][][][][]
echo                               ========================
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                        Sile Bersabar MyData Sedang DI Proses
echo                               ========================
echo                               [][][][][][][][][][][][]
echo                               ========================
ping localhost -n 2 >nul



Second Animation

echo off
color 1a   
echo     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ping localhost -n 2 >nul
echo     º    0   0    0 0000000 000 0     0 000 00000  0    0  000000             º
ping localhost -n 2 >nul
echo     º   0 0  00   0    0     0  0     0  0  0    0 0    0 0                   º
ping localhost -n 2 >nul
echo     º  0   0 0 0  0    0     0  0     0  0  00000  0    0  00000              º
ping localhost -n 2 >nul
echo     º  00000 0  0 0    0     0  0     0  0  0    0 0    0       0             º
ping localhost -n 2 >nul
echo     º  0   0 0   00    0     0   0   0   0  0    0 0    0       0             º
ping localhost -n 2 >nul
echo     º  0   0 0    0    0    000    0    000 0    0  0000  000000              º
ping localhost -n 1 >nul
echo     º                                                                         º
ping localhost -n 2 >nul
echo     º  000000   0   00000  000000   0    000000 0000000  00    0000  0000000  º
ping localhost -n 2 >nul
echo     º  0       0 0  0    0 0       0 0  0          0    0 0   0    0      0   º
ping localhost -n 2 >nul
echo     º  0000   0   0 00000  0000   0   0  00000     0      0    0000      0    º
ping localhost -n 2 >nul
echo     º  0      00000 0    0 0      00000       0    0      0   0    0    0     º
ping localhost -n 2 >nul
echo     º  0      0   0 0    0 0      0   0       0    0      0   0    0   0      º
ping localhost -n 2 >nul
echo     º  0      0   0 0    0 000000 0   0 000000     0    00000  0000   0       º
ping localhost -n 2 >nul
echo     +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ping localhost -n 2 >nul
Title: Re: i want make a simple game in dos
Post by: gamerx365 on February 19, 2008, 07:25:12 PM
nice animation! inspiring as well XD. i wanna make one now lol. I think a game made out of animations on DOS would get you a lot of respect XD. it would take forever. for example the telenet starwars movie, that thing was amazing. Who ever did that is probably very respected by those who know who did it. it must have taken weeks to make it.
Title: Re: i want make a simple game in dos
Post by: Dark Blade on February 19, 2008, 10:24:36 PM
I suppose everyone remembers the Star Wars Asciimation (http://www.asciimation.co.nz/)... it looks so cool, but it would probably takes yars to do the whole thing.
Title: Re: i want make a simple game in dos
Post by: Fareast187 on February 24, 2008, 07:35:25 AM
yea..the star wars animation in dos it really owesome....

i want to make like that but it take too long...

anyone got the idea..?
Title: Re: i want make a simple game in dos
Post by: gamerx365 on February 24, 2008, 05:11:16 PM
read about this and it has some interesting stuff in it. im sure if you do a couple searches you could easily learn it

http://www.asciimation.co.nz/asciimation/ascii_faq.html
Title: Re: i want make a simple game in dos
Post by: diablo416 on February 25, 2008, 03:22:07 PM
is the star wars asciimation the full movie?

for anybody whos intrested, i updated my batch game
get it here. http://odn.t35.com/dg/rohe.txt (http://odn.t35.com/dg/rohe.txt)

this is a much better release then the others its almost playable now..
includes
-in game chat
-multiple users(open two windows)
-2 hidden realms (torture realm , and purgatory)
-diety/class/charachter/type/other choices
-new commands
say - use chat
x - exit game
who - whos playing
v - whos in this area
dset - set to this area
dcal - call this area
-updated stats screen
-updated save
-added a library/treasury/
-Added objects (solve the riddles earn extras ect) (get sucked into a phone)
-Added Secret passages (diablos lab , healing chair + object)

soon i will make enemys, i understand how now
Title: Re: i want make a simple game in dos
Post by: gamerx365 on February 26, 2008, 07:06:40 AM
sounds pretty interesting. ill check it out if i get a chance later. you know what would be awesome is a MUDD or whatever they are called. you know like just a simple game like this that you could play with a couple buddies online or something. I have no idea how any of it would work but i'd like to see something like that in action.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on February 26, 2008, 12:27:27 PM
its more interesting now being able to chose your faith, race, sex, and all. why does it exit when i pray? it did that on the old version too. you changed the codes so modding isn't the same. thats okay, i didnt want to mod it anyway. the map still confuses me... i personally dont like the setup here though. it seems like when it reloads it has to show too much. have you considered making a separate console for the chat? and also in the chat it only shows the most recent spoken text and doesnt automatically reload. I like your idea and admire your patience for creating this but thats just a few issues I've noticed with it. Also I dont have vista so I can't view everything to its maximum potential. for example the startups screen runs off, as shown below. And I noticed the window doesn't have a title. You don't need to but it would look better if you put this in the code towards the top:
Code: [Select]
title Realms of *censored* (E)or something similar.
(http://i131.photobucket.com/albums/p292/gamerx365/map_1.jpg)
(http://i131.photobucket.com/albums/p292/gamerx365/startupsc_1.jpg)

Title: Re: i want make a simple game in dos
Post by: diablo416 on February 26, 2008, 03:39:16 PM
i'm not sure why it would exit , if you open it up in cmd.exe first instead of clicking the file maybe it will show the reason.. or you could try set /a r=4+4 and see what that does..  , i made it to work on a maximized screen to , does that make any difference? , and i know about the chat just i dident think their was anyway to change that , its becuase its not consantly looping theirs no way to make it live.. , the only reason i added a chat though is so the monsters could talk and be announced , and i know what you mean about mudd.. if you use telnet.. you can go to run, and type telnet iris.scripters.be:1111 somewhere inside their you will find a place called the realms of tyria i think.. the first version of my game was made based on that. its still way better then mine though
Title: Re: i want make a simple game in dos
Post by: BC_Programmer on February 27, 2008, 07:06:38 AM
I have never seen so much code duplication in my life! Making interactive batch programs is like performing heart surgery while wearing oven mitts. But I suppose you have to start somewhere. Here's my timeline that I followed to learn programming:

Batch on DOS 3.21->QBasic->QuickBasic->Visual Basic 2.0->Visual Basic 6.0->Visual C++ 6.0->Visual Studio 2005

I don't really like .NET, but It seems to be the "thing" just like java was a few years back.


Oh yeah! I forgot- I also messed around with the Duke Nukem 3d CON files to do wacky stuff like make enemies appear whenever another type of enemy died, there was an explosion etc.


Also call me a nitpicker if you want but the windows XP command interpreter is not DOS. I can see the term DOS being used as a shorter form, but Console would be a better term here. DOS is an Operating System unto itself. Why, my 12 year old laptop hasn't been formatted since it was originally purchased!
"volume created 03-04-1996"

Now how is that for reliability! Still runs great!

. All you young whippersnappers today with your Rock & Roll and your Eight track tapes... :)

Well- nobody ever drove me to school when it was 90 degrees below
had to walk but naked, through 40 miles of snow
worked in the coal mine 22 hours a day for just half a cent
had to sell my internal organs just to pay the rent

hee hee.

If your starting with batch programs though it is an awesome beginning, since you really don't have to buy anything to make them or run them.

Would anybody be interesting in a program called BAT2EXE that converts a batch file to an executable? I'd be willing to send it to anybody that wants it. Keep in mind that it only supports older DOS syntax, so don't be surprised if it chokes on new parameters and stuff.

Also, out of curiosity, how is the command processor different on Vista as opposed to XP? You can resize the command processor in XP as well...
Title: Re: i want make a simple game in dos
Post by: gamerx365 on February 27, 2008, 08:58:38 AM
yeah ive used that BAT2EXE before. It is interesting but it never seems to run everything perfect. i guess some of my commands were a bit too new.
Title: Re: i want make a simple game in dos
Post by: BC_Programmer on February 28, 2008, 09:16:44 AM
Well, it was made back in the days of DOS 5, so I wouldn't be surprised. Actually, I'm not even sure how it got on my PC-DOS 6 laptop. I didn't get it until I left batch programming. I wonder if it is included with PC-DOS 6? I must research this further.


I haven't done batch programming in so long! I remember I used to have to use an external program to get user input, but now the "set" command takes switches, And the For command can be used to make loops! Amazing it's still referred to as a "batch" language!

Anybody familiar with REXX? I suppose that these extensions to the batch language are Microsofts answer to IBM's REXX support that they built into the command processor.
Title: Re: i want make a simple game in dos
Post by: WillyW on February 28, 2008, 09:44:30 AM
...
I haven't done batch programming in so long! I remember I used to have to use an external program to get user input,

GetKey?        :)
http://ourworld.compuserve.com/homepages/ken

Quote
but now the "set" command takes switches, And the For command can be used to make loops! Amazing it's still referred to as a "batch" language!

Finding and using third party utils was fun. 
http://home.mnet-online.de/horst.muc/main.htm        for a few.

Quote
Anybody familiar with REXX?

/* Just a little bit */

 ;)


Quote
I suppose that these extensions to the batch language are Microsofts answer to IBM's REXX support that they built into the command processor.


In truth,  I barely scratched the surface of REXX back when I used OS/2 Warp4 a lot. 
I came from DOS,  and found the old axiom to be true,  "OS/2 does Dos better than Dos does Dos."       I sort of crippled myself from learning more about OS/2 by bringing my old Dos methods and utils with me.    As long as I could get done whatever I needed with them,  I did.     


Title: Re: i want make a simple game in dos
Post by: macdad- on February 28, 2008, 05:35:19 PM
im trying to make a random # generator for a DOS card game im making
heres the code for the Random # generator
set /a rnd=%random% %%3 + 1 >nul
if '%rnd%'=='1' goto cardo
if '%rnd%'=='2' goto cardt
if '%rnd%'=='3' goto cardh

i want DOS to choose a number between 1 and 3 it does that but it also guesses 3 times. im confused is there something wrong that i did when i wrote the line? plz help! ???

Title: Re: i want make a simple game in dos
Post by: itburnswhenipee on February 29, 2008, 10:02:00 PM
use something like this:


@echo off
cls

setlocal

set /a rnd=%random%%%3

if %rnd% equ 0 set one=1
if %rnd% equ 1 set one=2
if %rnd% equ 2 set one=3
echo one is %one%
pause
Title: Re: i want make a simple game in dos
Post by: Sidewinder on March 01, 2008, 05:18:32 AM
Quote
set /a rnd=%random% %%3 + 1 >nul

What are you attempting to do with this line? Is this a modulus using the the third command line parameter or a for variable without the for loop? <sigh> Either way there is a missing operand.

Code: [Select]
set /a rnd=%random% % 3 + 1 >nul
if %rnd%==1 goto cardo
if %rnd%==2 goto cardt
if %rnd%==3 goto cardh

 8)
Title: Re: i want make a simple game in dos
Post by: macdad- on March 01, 2008, 01:12:28 PM
o whoops...
but anyways thanks.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 09, 2008, 01:33:29 PM
hey, can anybody explain this to me? I need to make random numbers between 1 and 5, would this code work, or do i need more?

Quote
set /a DICE2=%random% %%6 + 1 >nul
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 09, 2008, 02:05:18 PM
and also im wondering about the things fareast187 used - thsee º. In DOS it makes a vertical double line. are there more of these characters I could use for corners and horizontal lines too?
Title: Re: i want make a simple game in dos
Post by: itburnswhenipee on March 09, 2008, 04:11:54 PM
È = a bottom left corner
Ì = one line with two half lines
æ = a y thing
ß = a rectangle
Ø = an = with ligns coming out of the top and bottom
Æ = a lign with to parts sticking out
» = a top right corner
¶ = double ligns
¡ = an i with a hat
these are some of the draw functions. i found them here
http://nostalgia.wikipedia.org/wiki/Wiki_special_characters
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 09, 2008, 05:06:30 PM
thanx i used some of yours but I dont want to go down the whole list in that page to find them so is there anyway I can just use these? http://en.wikipedia.org/wiki/Box_drawing_characters
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 09, 2008, 05:54:20 PM
well nvm i got most of what i got except BC, I can't find what to use to get BC/188/255D. I need the bottom right corner... anyone know?
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 11, 2008, 07:27:33 AM
haha im going crazy with these batch games... I'm almost done with eternal death slayer - An RPG where you just build up your skills, and I have started a new one called Alpha and Omega - A strategy game where what you build decides your future. You basically play as god. Anyway, I'll post links here as soon as I can upload...
Title: Re: i want make a simple game in dos
Post by: macdad- on March 11, 2008, 04:45:48 PM
im gettin bttr at batch games my recent one(and first one) is a card game, its like that magic card trick but Windows is definetly no Magician. the next one im making is a card game like Texas Hold em. i would say that the only bat games im making are card games. my other bat progs will be utilities and im finishing up a bat prog that is an anti-virus prog.
Title: Re: i want make a simple game in dos
Post by: devcom on March 12, 2008, 08:56:19 AM
the bat file can be anti-virus ?? i wana see that :P any way here is my simple game that i made. use w,a,s,d to move l to load map
(del last 4 digits from name of file to run)


[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: macdad- on March 12, 2008, 04:52:53 PM
yea it can be an Anti-Virus prog but i dont want to share the secret until i have finished it. i dont want anyone to be copy-cats out dere. but heres a hint "Find delete".
Title: Re: i want make a simple game in dos
Post by: devcom on March 13, 2008, 02:39:26 AM
I can be beta tester :P but it will be only in one file? or it will instal?
Title: Re: i want make a simple game in dos
Post by: Fareast187 on March 13, 2008, 05:34:43 AM
to gamerx365

and also im wondering about the things fareast187 used - thsee º. In DOS it makes a vertical double line. are there more of these characters I could use for corners and horizontal lines too?

that is a special Characters

open notepad, on the notepad...

hold down the key Alt then type the number like 147 then it will came Characters like this..."ô"

right now i found a new idea...

i want to make a hangman game...

like this :-
THIS GAME IS NOT FINISH YET.....I WILL FINISH THIS GAME LATER...AND POST AT HERE

echo off
cls
:a
Echo Name Of Animal...??
echo _ _ _ _

set /p Choice=Put Your Letter:
if [%Choice%]==[C] goto correct
if [%Choice%]==[A] goto correct2
if [%Choice%]==[T] goto correct3

For %%a in (C,A,T) do if not [%Choice%]==[%%a] goto lose

:lose
echo you're lose...hahahahahaha...


:correct
cls
Echo Name Of Animal...??
echo %Choice% _ _ _
goto exit


:correct2
cls
Echo Name Of Animal...??
echo _ %Choice% _ _
goto exit


:correct3
cls
Echo Name Of Animal...??
echo _ _ %Choice% _
goto exit

:exit
goto a

pause




Title: Re: i want make a simple game in dos
Post by: macdad- on March 13, 2008, 02:00:36 PM
ah that is a good idea for a hangman game, but proggramming in so many random words or phrases word be difficult. but that is a great idea Fareast! 8)
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 13, 2008, 03:41:21 PM
Devcom:

i cant run yours because I'm on my PSP but it looks complex. I might try it tomorow at school.

But anyway, if anyone wants to test Eternal Death Slayer and I will probably upload tomorrow also.
Title: Re: i want make a simple game in dos
Post by: devcom on March 14, 2008, 01:16:18 AM
i have noticed that my game works only on vista coz XP dont chave choice option...
Title: Re: i want make a simple game in dos
Post by: AndyF on March 14, 2008, 02:13:53 PM
  Years ago there used to be a program called BE-Batch Enhancer that would let you do some batch programming and handle colors and so on. Maybe you can still find that around. If you do it'll be on a 5" floppy. I have the manual, but it would take me forever to go through my huge cardboard box of diskettes to find it.  :D Maybe I can start going through them andif I find it I can send it to you. I imagine it's no more than a few K in size.

  Next and more fun and flexible is GWBasic, which packaged with DOS. I think it came since V4 and onward. If you have it and type GWbasic, you would get the same Edit screen as in later Basic's.

  Better still is Quick Basic and I think you can get that from MS if not free, at least for a song. Here you can even compile programs and port the EXEcutable around. In fact I still use it to do low level file handles etc.

  Basic would be not any less complex than dos commands and give you a larger suite of commands to play with. Quick Basic is no slouch. I created a rudimentary Database engine in Quick Basic. It wasn't lightening fast with a 12 hit seek recursion, but for that time it was pretty good. I got up to 800K records before the performance was starting to get noticeable.

  Andy   
Title: Re: i want make a simple game in dos
Post by: itburnswhenipee on March 15, 2008, 01:44:17 AM
you dont need batch enhancer there is a command called the color command
its like this

color 1a
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 19, 2008, 01:21:24 PM
I am trying to make a feature in my game that it wont let you come out if you go in too far. like if you are in 5 spaces you need to take 5 spaces to get out. again it keeps closing when I use my code...


changing number of spaces in
Code: [Select]
IF '%deeper1%'='1' SET /A deepness=deepness + 1 & GOTO 39F
IF '%deeper1%'='1' SET /A deepness=deepness - 1 & GOTO 39F

checking deepness:
Code: [Select]
IF '%deepness%'='0' GOTO lobby
initial setting:
Code: [Select]
SET deepness=1
Title: Re: i want make a simple game in dos
Post by: devcom on March 19, 2008, 02:51:03 PM
Code: [Select]
set /a deepness+=1or
Code: [Select]
set /a deepness=%deepness%+1
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 19, 2008, 06:20:40 PM
thanx... dunno why i've been running into so many problems
Title: Re: i want make a simple game in dos
Post by: macdad- on March 19, 2008, 07:15:31 PM
well when u create such a large prog u sometimes get lost in it. same thing happened 2 me when i wuz making my card game.
Title: Re: i want make a simple game in dos
Post by: 11victory11 on March 19, 2008, 10:25:27 PM
its more interesting now being able to chose your faith, race, sex, and all. why does it exit when i pray? it did that on the old version too. you changed the codes so modding isn't the same. thats okay, i didnt want to mod it anyway. the map still confuses me... i personally dont like the setup here though. it seems like when it reloads it has to show too much. have you considered making a separate console for the chat? and also in the chat it only shows the most recent spoken text and doesnt automatically reload. I like your idea and admire your patience for creating this but thats just a few issues I've noticed with it. Also I dont have vista so I can't view everything to its maximum potential. for example the startups screen runs off, as shown below. And I noticed the window doesn't have a title. You don't need to but it would look better if you put this in the code towards the top:
Code: [Select]
title Realms of h**l (E)or something similar.
(http://i131.photobucket.com/albums/p292/gamerx365/map_1.jpg)
(http://i131.photobucket.com/albums/p292/gamerx365/startupsc_1.jpg)


where can i download this game at?
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 22, 2008, 03:23:54 PM
look through this topic, he has a link to it on here...
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 28, 2008, 07:33:43 AM
well here is version 1 of EDS, its been done for a while but im just uploading now. Im not sure if the update feature is going to work quite yet, but eventually it will. and also i have included the commands for the login screen...

[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 28, 2008, 07:38:52 AM
does anyone know how to import from a .txt real quick? i forgot the code. Im using it in the update feature...
I want to read the text in update.txt and set it as a variable (update).
Title: Re: i want make a simple game in dos
Post by: devcom on March 28, 2008, 10:19:08 AM
mabey you mean
Code: [Select]
for /f "tokens=1-3 delims= " %%a in (update.txt) do set update=%%a
Title: Re: i want make a simple game in dos
Post by: itburnswhenipee on March 28, 2008, 05:27:43 PM
i have vista but the move thing doesn't work is there something i have to install

also i found an awesome batch to executable converter it saves as an exe instead of a com
i found it here at the weirdest place ever, yoyogames...
http://www.yoyogames.com/games/show/10610
you have to scroll down to the bottom where it says play offline because the instant play thing doesnt work for this
Title: Re: i want make a simple game in dos
Post by: Tan_Za on March 28, 2008, 10:41:38 PM
This is very good to see all you people making dos games using "BATCH". I will post mine when it is finished. It is a tcp/ip tank type game with up to four players. It is turned based and you have 1 tank per team. I will release the players on players first them I will release the players on bots.(bot will use random strategies)

I'll post soon,
Tan_Za
Title: Re: i want make a simple game in dos
Post by: devcom on March 29, 2008, 04:36:51 AM
Did you changed extension from txt to bat?
Title: Re: i want make a simple game in dos
Post by: macdad- on March 29, 2008, 06:16:59 AM
finally im done with my card game here it is. plz no copyrighting
and one more tip plz read the readme file before playing the game, since i got some game secrets in it and programmer's notes(yea  i programmed it) ;) i had to save it as a txt file so u'll have to convert it to a bat file.

[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: macdad- on March 29, 2008, 08:36:00 AM
well wat do u guys thnk?
great huh? ;D
Title: Re: i want make a simple game in dos
Post by: Tan_Za on March 29, 2008, 10:47:43 PM
A simple but very good. I like it, it is very cleaver and pretty well thought of

Nice,
Tan_Za
Title: Re: i want make a simple game in dos
Post by: devcom on March 30, 2008, 06:34:02 AM
here are my 2 games. one is maded for my friend where you must select glass where is a ball, second is move but i added a enemy. tell my what you think

PS.to use MOVE on XP download choice.exe
http://hp.vector.co.jp/authors/VA007219/dkclonesup/choice.html

[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: devcom on March 30, 2008, 06:49:38 AM
@macdad-

you shoudl add a goto commands after all card
like here:
Code: [Select]
:cardo
cls
set /p one=Is card 1, your card?[1=Yes/2=No]
if '%one%'=='1' goto comp
if '%one%'=='2' goto user
if '%one%'=='' goto cardo
goto cardo

:cardt
cls
set /p two=Is card 2, your card?[1=Yes/2=No]
if '%two%'=='1' goto comp
if '%two%'=='2' goto user
if '%two%'=='' goto cardt
goto cardt

:cardh
cls
set /p thr=Is card 3, your card?[1=Yes/2=No]
if '%thr%'=='1' goto comp
if '%thr%'=='2' goto user
if '%thr%'=='' goto cardh
goto cardh
becouse if you input for ex. 5 in cardo it will go to cardt

and here
Code: [Select]
if '%playagain%'=='Y' goto start
if '%playagain%'=='N' exit
if '%playagain%'=='y' goto start
if '%playagain%'=='n' exit
you can use /I switch
Code: [Select]
if /I '%playagain%'=='y' goto start
if /I '%playagain%'=='n' exit
Title: Re: i want make a simple game in dos
Post by: macdad- on March 30, 2008, 02:38:57 PM
Tanza thnx, i think that my BAT games should just be card games, im thinkin the nxt one i make should be a Texas Hold em game.

and devcom ty for ur tips. but heres the thing about the goto card deal, i originally had it to it would say goto cardone but when i got to the goto cardtwo and goto cardthree dos would get screwed up and goto the opposite label. but thnx again for the tip on the IF command.
Title: Re: i want make a simple game in dos
Post by: macdad- on March 30, 2008, 02:51:04 PM
devcom, on ur glass game the computer always chooses #3 i think u may have a bug try this:

Old code:
Code: [Select]
@echo off
set score=0
set cscore=0
:RANDOM
set /a glass=%random%%%3
if %glass% equ 0 goto RANDOM
:SHOW
cls
echo. Your Score = %score%                                                   %cscore% = Computer
echo.
echo.                  1                   2                   3
echo.               #######             #######             #######
echo.             #         #         #         #         #         #
echo.             #         #         #         #         #         #
echo.            #           #       #           #       #           #
echo.            #           #       #           #       #           #
echo.           #             #     #             #     #             #
echo.           #             #     #             #     #             #
echo.          #               #   #               #   #               #
echo.          #               #   #               #   #               #
echo.         #                 # #                 # #                 #
echo.         #_________________# #_________________# #_________________#
set /p in=
if %in% equ %glass% (goto WIN) else (set /a cscore+=1)
goto SHOW
:WIN
echo.
echo.                                   You WIN
pause >nul
set /a score+=1
goto RANDOM

New Code:
Code: [Select]
@echo off
set score=0
set cscore=0
:RANDOM
set /a glass=%random% %%3 + 1 >nul
if %glass% equ 0 goto RANDOM
:SHOW
cls
echo. Your Score = %score%                                                   %cscore% = Computer
echo.
echo.                  1                   2                   3
echo.               #######             #######             #######
echo.             #         #         #         #         #         #
echo.             #         #         #         #         #         #
echo.            #           #       #           #       #           #
echo.            #           #       #           #       #           #
echo.           #             #     #             #     #             #
echo.           #             #     #             #     #             #
echo.          #               #   #               #   #               #
echo.          #               #   #               #   #               #
echo.         #                 # #                 # #                 #
echo.         #_________________# #_________________# #_________________#
set /p in=
if %in% equ %glass% (goto WIN) else (set /a cscore+=1)
goto SHOW
:WIN
echo.
echo.                                   You WIN
pause >nul
set /a score+=1
goto RANDOM

i threw in the random # generator code from my DOS Cards game, the new code i put in, sets a limit on the lowest number it can choose and the highest number it can choose."set /a glass=%random% %%3 + 1 >nul"

aparently this made the game a whole lot tougher since the computer won like 60% of the time i played it after i made the change in the code.

and devcom how do u code(or commands) on ur MOVE game?
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 30, 2008, 06:53:32 PM
well i guess i should ask... wat do you guys think about my EDS game? what should I change? in version 2 i added 3 more forrests, fixed the bug with skill distribution, relimeted skill to 700,and made a 1/12 chance of a random monster under 30 attacking. oh, and a couple more hidden commands.
Title: Re: i want make a simple game in dos
Post by: devcom on March 31, 2008, 08:54:19 AM
hmm its working on my computer but thanks for info

@gamer your game is cool but you know if it must be a big RPG you must add more rooms mabey quests etc.
Anyway idea is cool for me
Title: Re: i want make a simple game in dos
Post by: gamerx365 on March 31, 2008, 01:00:00 PM
quests.... i suppose i could make a quest or two for the next release. also I am going to re-do the update system. thanks.
Title: Re: i want make a simple game in dos
Post by: macdad- on March 31, 2008, 02:18:55 PM
yes u could try to make a batch version of runescape.
 ;) lol
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 01, 2008, 06:04:16 AM
haha, id estimate around 5-9 MB lol

Well here is version 2. it is pretty good i guess. I put all the fixes in the readme file.

[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: devcom on April 01, 2008, 07:50:11 AM
cool, idk about mode command. Imo you must add some animations/pictures ;) i will try to combine my move game and yours so you will can move in it
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 01, 2008, 08:36:10 AM
does your MOVE work on XP? Also I don't think it works on ME because it kinda automatically plays itself and stuff lol. Well I use ME for a lot of my coding because that is what we have a t school, so I wouldn't be able to use anything like yours or whatever. I feel like I need to make more quests though lol.
Title: Re: i want make a simple game in dos
Post by: devcom on April 01, 2008, 08:55:35 AM
i dunno that the ME have choice.exe if yes use [wasd] to move if no you must download it. i posted link before
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 01, 2008, 09:26:08 AM
yeah that link is blocked here but i dont know, I'm thinking of adding some quests and a title screen. I don't know what else to add though. You don't think there are any bugs that I need to fix?
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 01, 2008, 09:32:19 AM
i cant get it to wait when i ping though using -n.
PING -w 1 1.1.1.1>NUL takes too long
and
PING -n 1 1.1.1.1>NUL also takes too long
what should I change?
Title: Re: i want make a simple game in dos
Post by: devcom on April 01, 2008, 12:14:50 PM
ping -n 1 -w 1000 1.1.1.1 <--- one second
ping -n 1 -w 2000 1.1.1.1 <--- two seconds
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 01, 2008, 02:28:38 PM
oh okay, I see... and i can use like 500 and stuff too, right?
Title: Re: i want make a simple game in dos
Post by: devcom on April 01, 2008, 03:13:20 PM
yup numbers variables etc.
here are my old project that i found on disc i think they are very bugy but i will upload soon new versions.


[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: macdad- on April 01, 2008, 06:22:28 PM
your shoot game doesnt have any bugs, but it is very professoinal looking(due to the "i accept license agreement" thing)
on the other hand your date prog is bug city. there are error messages that say "Missing Operand". might want to check that.
Title: Re: i want make a simple game in dos
Post by: devcom on April 04, 2008, 02:15:03 PM
im makeing game but its buggy like *censored*.
every think was okey but when i tryied to load a position it crashed totaly.
the save option dont work dunno why. it looks like it cant find a %login% from place whery login to game.
and next thing is when i tryied to goto MAP_%map% it always crash.
can somebody tell me where are problems ?
i know its big code but please help

[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: macdad- on April 04, 2008, 08:32:07 PM
heres my first version of Sys Stat(Version 1.0.1), its a utility for your comp, that you can use to check your harddrive, your OS Version, and more(plz no copyrighting)


[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 07, 2008, 02:17:34 AM
ok, People who are putting games on this section should get rid of the choice command and put something else for it. Most people use XP computers not windows 98 or 2000, or maybe even lower. People who are making these games with the choice command make the choice command NO more.

Make people's lives easier,
Tan_Za

PM: I like all of your games though. I think this is a very good forum for people to learn.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 07, 2008, 07:36:33 AM
yeah really, choice is bad. Thank you for appreciating our games though lol. I work pretty hard on EDS and it gets realy really confusing sometimes too. Also I have started work on a game somewhat similar to EDS but more advanced. You have more control of the game. I will call it EDK (Eternal Destiniy Killer) Should be done with version 1 in a week or two.
Title: Re: i want make a simple game in dos
Post by: devcom on April 07, 2008, 08:12:23 AM
you can just download choice and put it into right folder and you have it
Title: Re: i want make a simple game in dos
Post by: macdad- on April 07, 2008, 03:52:22 PM
uh guys and comments on my Sys Stat prog? :-\
cuz version 2 will allow you to configure ur network properties and it will allow u to tweak ur serial port settings and your printer settings.
Title: Re: i want make a simple game in dos
Post by: SOAP on April 07, 2008, 04:17:08 PM
hey great program macdad. um a few suggestions.... one, make it so if you type the letter 'g' it does 'G' i hate having to do caps. also, when you do system time and stuff, make a seperate menu for them like this:
---------------------------------------------------------------------------------------------------------------------------------------
:time
echo                                                                 %date% %time%
echo            1. Check date and time
echo            2. Change date
echo            3. Change time
echo            4. Go back to main menu

set /p choice=PLEASE ENTER A NUMBER....
if %choice% GEQ 5 cls & goto time
if %choice% LSS 1 cls & goto time

if %choice% EQU 1 cls & goto time
if %choice% EQU 2 cls & date
if %choice% EQU 3 cls & time
if %choice% EQU 4 cls & goto mainmenu
----------------------------------------------------------------------------------------------------------------------------------------
that way they can check the date and time WITHOUT accidently changing it :)
feel free to use this or feel free to flush this down the toilet, i don't care
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 08, 2008, 02:23:52 AM
Well for the choice command if you are going to included it then put the choice.com in the file zip/rar when you post your games. Also the choice and errorlevel commands are all most just computer history in these days so it would be clever to move away from those commands.

Computers have moved on,
Tan_Za
Title: Re: i want make a simple game in dos
Post by: devcom on April 08, 2008, 05:59:31 AM
why do not use a /I switch ?

Code: [Select]
:LOOP
set /p choice=[Y/N]
if /I %choice% equ y goto :EOF
if /I %choice% equ n goto LOOP
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 08, 2008, 06:07:16 AM
Some of the main fixes:

Quote from: EDS ReadMe.txt

--NEW STUFF
+----Title screen
+----Dieing animation
+----New Quest "Kill the big bad wolf"
+----New Quest "Super Strength Test"
+----Level 69 Forrest
+----Level 79 Forrest
+----3 Reminder System
+----Forrest Entrance selector room

--OTHER STUFF
+----Skill is limited to 850

Tell me what you think it needs / has to have fixed. I just got an idea that maybe in version 4 I will make a walk around type of thing like in realms of *censored*. Well, kinda. I hope it would be less confusing because I gotta admit that kinda confused me a little. Might make an inventory or something and items you can pick up. maybe make you able to weild weapons. I don't know though, sounds a little complex but im sure i'll manage it.

[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: devcom on April 08, 2008, 11:19:11 AM
nice update mate.You can add something whitch will echo all maded accounts on computer and sth like del all of saves or something becouse you have hiden a saves folder.

Yeah im betatester ?  ;) And your inspiration ?  ;)
Quote
           Tested By:
             Devcom
                 ....
          Inspiration:
 Devcom's Realms of *censored*

i will post my game but i must improve save and load game, make some maps and i think it will be cool
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 08, 2008, 01:08:49 PM
Well you are the only person who has commented specifically about EDS. Realms of *censored*, well if you never showed me that then I wouldn't have made a game at all. And tell me more about this hidden save thing. I used to have a hidden command that would show all users but that was less effective. I think I will fix that now though.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 08, 2008, 01:15:12 PM
and also I forgot the code to show a whole txt inside the batch. anybody know it?
Title: Re: i want make a simple game in dos
Post by: devcom on April 08, 2008, 03:07:12 PM
Good i coudl help you

hidden i mean the game folder is hiden in C: so its imposible to delete account or sth

to show users you can make sth like this
Code: [Select]
dir /b C:\EDSit shoudl echo all folders so accounts too

Quote
and also I forgot the code to show a whole txt inside the batch. anybody know it?
you mean type "file" ??
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 08, 2008, 04:12:07 PM
yeah, there is a delete profile option if you go to the profile menu.
alright thanks for the directory thing. before I just had
Code: [Select]
dir C:/EDSYeas exactly the code I was looking for! thanks.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 08, 2008, 04:22:12 PM
alright I used a different code for the users command though, what I did is I made it so that every new profile will echo the username into a new line in allusers.txt and then when the users command is used, it just reads that. Now i get to do the fun stuff, making dungeons... ugh... I want the dungeons but I feel like theres something better to do with my time lol.
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 09, 2008, 02:14:26 AM
This EDS game is very good and I like it. I think you should have it so you can walk around the place and so on. That way it would look better and be more of a game. So the player could wonder around and do what he wants instead of just choosing options.

Good game though,
Tan_Za
Title: Re: i want make a simple game in dos
Post by: devcom on April 09, 2008, 04:11:54 AM
my game have that option so you move and sometimes monster is attacking you
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 09, 2008, 04:49:06 AM
What I mean is that so you can move your character around a map. That sort of thing. Well any way I have had a big think about this and I think We should make a team and produce a good batch game. I will post my game soon in .exe format. I have been taking a look at the EDS game and I think that the coding point of view that it is a very good game. It runs on windows 2000 and XP and I don't know about vista, I havn't tried yet because I hate vista and I don't have a copy of it. So what do you guys think of us all making a team to produce a batch game.

Does my idea sound good or bad, choices!!!
Tan_Za
Title: Re: i want make a simple game in dos
Post by: devcom on April 09, 2008, 05:05:07 AM
the team is good idea imo. It works on Vista. Butif you post your game can you post it in txt so can view a code and learn if we dont know sth
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 09, 2008, 06:10:56 AM
Good, I'm so glad you like it. Any yes, for the next version I am working on a map that you can walk around on, well kinda. Its a map and each exit has a choice and you can pick wich exit to go through. and sometimes there are monsters in the room and sometimes you find things which are transferred to your inventory. For now you cant use anything in the inventory but I might make an option to sell all things, i dunno....

As for the team, that would be cool but we would have to split up the coding, since thats nearly all there is to batch scripts. like we would have to divide it in to sections. I would be willing to try the team game after I finish the EDS V4 update, which will be awesome lol.
Title: Re: i want make a simple game in dos
Post by: devcom on April 09, 2008, 08:20:39 AM
here is my game but its not finished yet so if you can, post BUGS etc.


[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: macdad- on April 09, 2008, 03:06:59 PM
ok phoniex looks really good exepect on the main menu were you create or login to an account it keeps on flashing and doesnt allow you to select which option.
Title: Re: i want make a simple game in dos
Post by: macdad- on April 09, 2008, 03:08:55 PM
hey great program macdad. um a few suggestions.... one, make it so if you type the letter 'g' it does 'G' i hate having to do caps. also, when you do system time and stuff, make a seperate menu for them like this:
---------------------------------------------------------------------------------------------------------------------------------------
:time
echo                                                                 %date% %time%
echo            1. Check date and time
echo            2. Change date
echo            3. Change time
echo            4. Go back to main menu

set /p choice=PLEASE ENTER A NUMBER....
if %choice% GEQ 5 cls & goto time
if %choice% LSS 1 cls & goto time

if %choice% EQU 1 cls & goto time
if %choice% EQU 2 cls & date
if %choice% EQU 3 cls & time
if %choice% EQU 4 cls & goto mainmenu
----------------------------------------------------------------------------------------------------------------------------------------
that way they can check the date and time WITHOUT accidently changing it :)
feel free to use this or feel free to flush this down the toilet, i don't care

thanks for your advice until now i didnt even know the date and time variable so ty. (i'll make the changes in version 2 ;))
Title: Re: i want make a simple game in dos
Post by: devcom on April 09, 2008, 03:18:44 PM
do you have choice in your computer ?
Title: Re: i want make a simple game in dos
Post by: macdad- on April 09, 2008, 03:22:24 PM
me? yeah i hve choice on my comp but i had to download it since my OS is Win 2000.
Title: Re: i want make a simple game in dos
Post by: diablo416 on April 09, 2008, 03:34:17 PM
i like eds.bat, version 1 seems to work well, their is one bug though, it crashes sometimes using level 9 forest, and version 3 .. "couldent find a version 2" looks good i like the intro but it wont let me login..

took me a minute to understand devcoms game, more then a minute at first that beeping was driving me banannas.. but after i figured it out it seemed well made, i still dont think im playing correctly though what do i do change the "*" 's to "I" 's?


i just started untitled "beyond realms of *censored*" ,  a little more then a week ago i dont have alot of time available to do it, but so far ive already put 6 hours into it.. roh versions a-e , including the ones i accidently deleted i only had around 2 hours into them combined, my next version of the game will include this
-room files,(no more duplicated room code, a file containing a list of variables to set instead)
-different interface (not cluttered anymore)
-processing section, instead of going .. from point a - next room, you go point a - point b - next room, its made for some improvements.. including (weather,Mood,anti-cheating,destroyed areas,disabled areas,weapons,weapon information, inventory ,sleep , plus all the old features, and teleport , plus magic , plus potions ,attack , get items , sit , stand , full armor including (helm,arms,neck,fingers,gloves,torso,chest,legs,boots) amount of kills , amount of deaths.. GAME TIME , with an end of the world.
-time device
-enemy creation
-area creation

Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 09, 2008, 06:44:45 PM
i like eds.bat, version 1 seems to work well, their is one bug though, it crashes sometimes using level 9 forest, and version 3 .. "couldent find a version 2" looks good i like the intro but it wont let me login..
What system are you running on, and did you try creating a new account, or using the old one? Because when you get the new version it uses your old account unless its saved on a different drive.

As for area creation, I was thinking about adding a similar feature in EDSV4. I didn't think about monster creation, but that could be cool. I was thinking of renaming monsters, something unique, like by species. The level creation would be quite strict though... I think I'll work on a little something for that now... I mean of course you wont be able to place creatures or money because that would be cheaty...
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 09, 2008, 06:57:55 PM
oh, and about devcom's pheonix, i cant use it because of choice. you chould use what i use:

set /p variable=Choice:
if '%variable%'=='1' GOTO whatever
if '%variable%'=='2' GOTO whatever2

this is more widely accepted...
Title: Re: i want make a simple game in dos
Post by: macdad- on April 09, 2008, 08:15:00 PM
very true ;)
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 10, 2008, 02:17:59 AM
Ok, I have tested the game that devcom made and I really think that you should get rid of the errorlevel and stuff like that because the future is coming. But nice game though. I have choice and errorlevel so I'm fine, but I do not like to use them for some people's sake.

If you want to make a team say that you want to and I think we could think of something,
Tan_Za
Title: Re: i want make a simple game in dos
Post by: devcom on April 10, 2008, 06:40:51 AM
but without choice it hard to move in it... thats why i use choice. If ill convert my game to exe i will attach choice to it and if computer doesnt have that option it will copy it to C:\Windows\Sytem32
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 10, 2008, 12:58:00 PM
hey tan_za, i think i will do the team thing. I dunno, i think we should build a website for it and host all the teams games as well as individual's games. Although I have no idea what this game would be of. maybe when EDSV4 drops you will like some of my new features. I came up with stuff for the update today, now I just have to code it all.
Title: Re: i want make a simple game in dos
Post by: devcom on April 10, 2008, 01:14:30 PM
i have inposible idea.
we can make TPC/IP based Tanks like that old game  ::)
(http://www.emuinfo.xon.pl/screeny/4/46848%5B2%5D.png)
but firstly we should have a way to chat. I sugess Xfire
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 10, 2008, 02:23:30 PM
that would be hard, whats xfire?
Title: Re: i want make a simple game in dos
Post by: devcom on April 10, 2008, 02:29:00 PM
its chat program specialy for gamers but i hate msn so we can use this one.
Search in google for it
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 10, 2008, 06:58:41 PM
well the last thing i need is another program. Did you ever think about using a in browser messenger? try http://meebo.com
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 11, 2008, 02:10:32 AM
Well, yes I think the tank tcp/ip game will be good except scrap the color. In batch I think you can only have one color, so yeah. Ok my xfire account name is tanzalince.

Oh and here is my tank game. Follow the help file,
Tan_Za

[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 11, 2008, 09:18:43 AM
Hey guys, Me and Devcom have decided to make this team thing. We need as many more people as we could possibly need. We do only really need 3 more people so first in with good skills is in. To join you must post an example of a game made in dos to me and Devcom.

Thanks,
Tan_Za
Title: Re: i want make a simple game in dos
Post by: macdad- on April 11, 2008, 02:33:20 PM
alright i got my xFire account its macdad64 so im in. tanza im on ur team with devcom.
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 11, 2008, 09:58:54 PM
All right that is excellent, Thank you for joining you won't regret it. The game will be also multiplayer and stuff with a sever that we will make with C or C++ but the rest of the main game will be made with batch.

Ok one or two more people,
Tan_Za
Title: Re: i want make a simple game in dos
Post by: macdad- on April 12, 2008, 07:07:34 AM
i think that the TCP/IP Multiplayer can be the job for the batch file.
Title: Re: i want make a simple game in dos
Post by: macdad- on April 12, 2008, 07:13:17 AM
hey tanza log on to xfire me and devcom are already on.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 12, 2008, 06:36:57 PM
oh by the way, im joining whether you like it our not  :P

jk but seriously im pretty sure you'd accept me. And as for posting an example of my game, I hope EDS VERSION 4 serves you well. The best update so far, well i think so anyway. I have mostly added new things to this though. Check it out:

[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 12, 2008, 06:44:39 PM
oh yeah, xfire=gamerx365

you got me to cave in and d-load it :-(
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 13, 2008, 12:17:03 AM
Yey, its so good that you are in. Me and devcom were hoping that you would join. Ok guys we are finished here, Devcom will send you an the actul game that we are trying to replicate.

ok thanks for joining, all joining options are now closed,
Tan_Za
Title: Re: i want make a simple game in dos
Post by: devcom on April 13, 2008, 07:46:53 AM
comon guys we should start yesterday. nobody is on xfire
Title: Re: i want make a simple game in dos
Post by: macdad- on April 13, 2008, 01:40:58 PM
ill be on in a hour got to do some chores.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 13, 2008, 02:18:01 PM
k. by the way, hows edsv4?
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 13, 2008, 06:45:05 PM
by the way, ummm... why are we making a game that has already been created?  Wouldn't it be better to make our own game?
Title: Re: i want make a simple game in dos
Post by: SOAP on April 14, 2008, 07:26:58 PM
hey gamerx great game! but buy the way i noticed a few spelling errors (a poison lizard 'attcks' me instead of 'attacks' me) nothing big but i would recommend puting all the text in word or something and use spell check.
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 15, 2008, 01:07:21 AM
Ok, but for me I basically have a different time limit and setups than most of you guys so yeah, Devcom I am on today if you want to chat.

Soap, dude is there something seriously wrong with you or something we are here to comment on the main containments. Not the spelling,

Regards,
Tan_Za
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 15, 2008, 11:14:52 AM
No but SOAP is right, i should fix spelling errors and also, I'd like to announce the final version of EDS is comming out. Many new forrests, where you can kill the Demigod! Also a lot of other features will be included too but thats the highlight so far. I figure i will start EDS 2, and then in the summer do EDS 3 which might e FLASH. can't wait lol.
Title: Re: i want make a simple game in dos
Post by: devcom on April 15, 2008, 11:54:51 AM
hehe you will make 'crysis 2' soon  ;) anyway while we do nothing in team i have maded a cputest program (i think so) which makes pythagoras tree's
so if you can post here your:
* Score
* System
* CPU

thanks
PS: it may take a while

[recovering space - attachment deleted by admin]
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 16, 2008, 05:55:22 PM
tell me how this file works devcom...

i got 678... what does this mean?!!!
Title: Re: i want make a simple game in dos
Post by: devcom on April 17, 2008, 03:44:50 AM
it makes pythagoras tree's [INFO]:http://en.wikipedia.org/wiki/Pythagorean_theorem (http://en.wikipedia.org/wiki/Pythagorean_theorem) and if your procesor make this faster you have better score
can you tell me whats your system and CPU ?
Title: Re: i want make a simple game in dos
Post by: diablo416 on April 18, 2008, 12:32:59 PM
i have vista media center edition with amd 64 athlon x2 ,

Start: 14:14:52.80   End: 14:19:19.49
Time: 5 min. 33,31 sec.
Score: 467

from what i do understand about it, i think my cpu is slow

i converted one of the web servers i have to store my batch games, i made a guest ftp account so if you want file hosting for your batch game msg me and ill give you the login
enforc3r.elementfx.com

the game im making is almost done, i got everything to make it function completed i just need to peice the last of it together, i got kind of lost for a while. right now im adding items
 
Title: Re: i want make a simple game in dos
Post by: Tan_Za on April 21, 2008, 05:08:29 AM
Hey devcom I have a problem with our team, one things is that well you are 6 hours difference to me. That makes a bit of a problem, so what is your email so we can communicate better about the game.

ok,
Tan_Za

PS. Same with the rest of the people in the team eg. gamerx
Title: Re: i want make a simple game in dos
Post by: macdad- on April 21, 2008, 05:59:56 AM
well tanza i'll need ur email in order to send you emails for the game discussion.

i'll send u my email address through PM
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 29, 2008, 07:21:56 AM
As for a gamerx365 update, here goes;

     I have been grounded and don't get much programming time, but I have decided that Eternal Death Slayer 2 is going to be written in BASIC, and will have clickable buttons and graphics and all. This won't be happening for a while so don't get your hopes up, changes might be made. EDSV5 I have created but I am not quite sure if it is ready for release...
     I am also working on a newer batch game, and don't want to reveal too much but it is planned to use call to keep it from slowing down, it will be very large, around 3 times the size of EDS and it will have multi characters, and a fully functional inventory. This is not a definate title, but for now I am going to call it GoD.
     I will upload EDSV5 when the time is right.
Title: Re: i want make a simple game in dos
Post by: macdad- on April 29, 2008, 12:20:08 PM
try Just Basic, which is way easier than VB
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 29, 2008, 12:56:16 PM
are you serious? agh-ness... ill look it up i guess and try it out...
Title: Re: i want make a simple game in dos
Post by: macdad- on April 29, 2008, 02:00:22 PM
yea Just Basic is like QBASIC except its more friendlier
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 30, 2008, 08:14:08 AM
yeah basically what i want to do though is have like a real window with buttons and backround images and stuff that would make it look cool... maybe some GIF animations if i can get some in...
Title: Re: i want make a simple game in dos
Post by: macdad- on April 30, 2008, 02:10:01 PM
yeah basically what i want to do though is have like a real window with buttons and backround images and stuff that would make it look cool... maybe some GIF animations if i can get some in...

everything you said is possible in Just Basic, except the GIF animations.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on April 30, 2008, 06:02:33 PM
well thats good... im going to wait until im not half stoned to try lol
Title: Re: i want make a simple game in dos
Post by: gamerx365 on May 01, 2008, 08:13:13 AM
do i need a compiler for basic? where do i get one?
Title: Re: i want make a simple game in dos
Post by: macdad- on May 01, 2008, 01:53:40 PM
no the complier is built-in. but you should read the tutorial first.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on May 02, 2008, 07:05:41 AM
what tutorial? can you post a link?
Title: Re: i want make a simple game in dos
Post by: macdad- on May 02, 2008, 02:02:03 PM
no once you download Just Basic, the Tutorial is in the Help menu of the Just Basic Window.
Title: Re: i want make a simple game in dos
Post by: diablo416 on May 15, 2008, 02:15:16 PM
http://odn.t35.com/gamelatest


REALMS OF *censored* VERSION E

beyond roh , wont be done for a while.. but heres a demo, in a moded version of ROH

a few new commands, lots more areas.. alot of changes

- go back in time
- game time
- sleep
- updated everything
- load
- 120+ areas
- Game reliant on files generated during install.
- Generates 120 files originally but in 1 year game time there will be an additional 16000+ per year (game time)

- the loop goes to :XILE in every single area now, this made it easyer to add a single line of code for many areas
- the if statements have been replaced by a single for statement and a generic file for commands
room commands are handled by another file v%rmid%

the improvements in this game from the last version make it more playable, there is 3 continents and a castle/homes , i dident add enemys/items but that will be in BEYOND ROH

http://odn.t35.com/gamelatest
Title: Re: i want make a simple game in dos
Post by: AndrewH on May 17, 2008, 05:29:47 AM
I've been working on simalar lines ~ Here = my atempt:
Going Batty
~~~~~~~~~~~
You can write programs on your computer that end with  .BAT  (short for batch).
The following program:
   cd windows
   win
Would Change the current Directory to  windows  and then run  Windows 3.
Just enter both lines into the  Edit  text editor and save as  win.bat.
With the  echo  command you can print to the screen. Would you like an
adventure? Here is how to start one: Make a directory called  advent
   md advent
Then make a directory called  door  in it.
        cd advent
        md door
should do it! Now enter this into the text editor:
   echo off
   echo You cannot go this way.
Save it as  north.bat  into the  advent  directory. 
For  east.bat  you could have:
   echo off
   echo You see a door and go through it.
   cd door
        look
So you want pictures! They can be saved as self-extracting files with the
Graphwork  program but here we shall use a text file. A word processor
such as  WordPerfect 5.1  has a drawing mode. It is better at making castles
as these do not have slopes. Save as a text file called  castle.txt.
        echo You see a beautiful castle!
        pause
   cls
   type castle.txt
Will wait for a key press, clear the screen and show your castle.
Save it as  look.bat
We are not stuck with one word commands. The line of a batch file:
   edit %1
would start  edit  and it would load the file with the
name you gave as a second word. So if we make the file that contains:
        %1
and call it  go.bat  we can use  go north  or  go east .
Start your adventure in the  advent  directory and try and find the castle.
We can use more than two words and open the door with a key.
But that is for next time.
Title: Re: i want make a simple game in dos
Post by: gamerx365 on July 02, 2008, 07:19:20 PM
Okay, this is a bump but this post fits in the topic. I know I haven't been doing much programming, and I certainly haven't worked on EDS as planned. Now I am finally ready to upload EDS V5. It is still in written with the DOS script, and I'm not sure how pleased anyone will be with this update. Don't expect many new features or any quests, but theres defanatley some new stuff thrown in it. Heres, a piece from the ReadMe.txt:
Quote
-IN THIS VERSION-

--BUG FIXES

--NEW STUFF
+----Forrests added:
  +----100
  +----150
  +----200
  +----500
  +----1000
+----A second random monster, same chance of attack
+----At top of stats box, your level is displayed
+----Status update after dieing
+----You can buy a print out of your stats in the store
+----New shortcuts to start in Window or Full Screen modes
+----New room in dungeon search

--OTHER STUFF
+----Skill limit; 1000

And, well, to actually try stuff out, you will just have to download it I guess. Please tell me what you think. I disparately need ideas for it now.

Oh and also, if you have an account already, then the die count thing wont work. Sorry.

[recovering disk space -- attachment deleted by admin]