Computer Hope

Microsoft => Microsoft DOS => Topic started by: tommyroyall on February 18, 2010, 04:55:34 PM

Title: Multi user batch file, Multi player batch game, start problems, saving problems?
Post by: tommyroyall on February 18, 2010, 04:55:34 PM
I WANT to make my batch game have music, be multiplayer and save your progress. Please help with any that you can, including the multiplayer.
Title: Re: Multi user batch file, Multi player batch game, start problems, saving problems?
Post by: Helpmeh on February 18, 2010, 05:17:47 PM
OK, what have you got now?
Title: Re: Multi user batch file, Multi player batch game, start problems, saving problems?
Post by: tommyroyall on February 18, 2010, 05:39:00 PM
Multi player problems.
God I need to learn more batch before making a game with it :-(.
Title: Re: Multi user batch file, Multi player batch game, start problems, saving problems?
Post by: Helpmeh on February 18, 2010, 05:46:12 PM
Multi player problems.
God I need to learn more batch before making a game with it :-(.
I mean what is your current code...
Title: Re: Multi user batch file, Multi player batch game, start problems, saving problems?
Post by: tommyroyall on February 18, 2010, 08:45:46 PM
CURRENTLY (but still in devlopment):
::TO DO:
::1.Finish screens.
::2.Finish items.
::3.Get a skill.
::4.Add my engines.
::5.Make a reference.
::6.Finish the game map.
@echo off
:BOOLEAN
set spritewing=0
set hammer=0
set hppotion=0
set mppotion=0
set orange=0
set rose=0
set sword=0
if %sword%==1 playerattack=%playerattack%+15
set shield=0
if %shield%==1 playerdefense=%playerdefense%+15
set spritedust=0
goto VARIABLES
:VARIABLES
set playerhp=25
set playerattack=5
set playerdefense=10
set lightspritehp=5
set lightspriteattack=3
set lightspritedefense=2
set darkspritehp=5
set darkspriteattack=3
set darkspritedefense=2
set waterspritehp=5
set waterspriteattack=3
set waterspritedefense=2
set firespritehp=5
set firespriteattack=3
set firespritedefense=2
set windspritehp=5
set windspriteattack=3
set windspritedefense=2
set lightningspritehp=5
set lightningspriteattack=3
set lightningspritedefense=2
set mindspritehp=5
set mindspriteattack=3
set mindspritedefense=2
set earthspritehp=5
set earthspriteattack=3
set earthspritedefense=2
set livingredwoodhp=15
set livingredwoodattack=11
set livingredwooddefense=7
set livingoakhp=10
set livingoakattack=6
set livingoakdefense=3
set livingmaplehp=13
set livingmapleattack=8
set livingmapledefense=5
set elfhp=20
set elfattack=10
set elfdefense=13
set traphp=1
set trapattack=10
set trapdefense=0
set babyspiderhp=10
set babyspiderattack=10
set babyspiderdefense=10
if %playerhp%==0 goto PLAYERDEAD
if %lightspritehp%==0 goto LIGHTSPRITEDEAD
if %darkspritehp%==0 goto DARKSPRITEDEAD
if %waterspritehp%==0 goto WATERSPRITEDEAD
if %firespritehp%==0 goto FIRESPRITEDEAD
if %lightningspritehp%==0 goto LIGHTNINGSPRITEDEAD
if %windspritehp%==0 goto WINDSPRITEDEAD
if %mindspritehp%==0 goto MINDSPRITEDEAD
if %earthspritehp%==0 goto EARTHSPRITEDEAD
if %livingoakhp%==0 goto LIVINGOAKDEAD
if %livingmaplehp%==0 goto LIVINGMAPLEDEAD
if %livingredwoodhp%==0 goto LIVINGREDWOODDEAD
if %babyspiderhp%==0 goto BABYSPIDERDEAD
if %traphp%==0 goto TRAPDEAD
if %elfhp%==0 goto ELFDEAD
goto MAIN
:MAIN
start "/min" "c:\Users\Owner\Desktop\ALL\Exploration72\drumdance.mp3"
set n=North
set s=South
set e=East
set w=West
echo Welcome to the Exploration 72 alpha testing. There is 1 monster, 1 class, 1 area, 1 item and 1 skill.
echo To go to the game, type in P and press ENTER.
echo To exit, type in E and press ENTER.
echo To look in the instructions, type in I and press ENTER.
echo To look in the reference, type in R and press ENTER.
set /p input=COMMAND?
if %input%==P goto LOGIN
if %input%==E goto EXIT
if %input%==I goto INSTRUCTIONS
if %input%==R goto REFERENCE
:EXIT
cls
pause
exit
:INSTRUCTIONS
cls
echo In this game you create your character and you can explore the text based world, hunt monsters and level up.
pause
goto MAIN
:REFERENCE
cls
echo Sorry, there is currently no reference as the game is so small
pause
goto MAIN
:LOGIN
cls
echo Enter your password:
set /p input=Password:
if %input%==MOMMY1 goto CHARACTERCREATION
:CHARACTERCREATION
cls
echo Enter your characters name:
set /p name=Name:
pause
goto CLASS
:CLASS
goto STR
:STR
cls
echo Roll a 6 sided die, then multiply by three. What is your outcome?
set /p STR=Roll:
pause
goto INT
:INT
cls
echo Roll a 6 sided die, then multiply by three. What is your outcome?
set /p INT=Roll:
pause
goto WIS
:WIS
cls
echo Roll a 6 sided die, then multiply by three. What is your outcome?
set /p WIS=Roll:
pause
goto END
:END
cls
echo Roll a 6 sided die, then multiply by three. What is your outcome?
set /p END=Roll:
pause
goto DEX
:DEX
cls
echo Roll a 6 sided die, then multiply by three. What is your outcome?
set /p DEX=Roll:
pause
goto AGI
:AGI
cls
echo Roll a 6 sided die, then multiply by three. What is your outcome?
set /p AGI=Roll:
pause
goto LUK
:CHA
cls
echo Roll a 6 sided die, then multiply by three. What is your outcome?
set /p CHA=Roll:
pause
goto LUK
:LUK
cls
echo Roll a 6 sided die, then multiply by three. What is your outcome?
set /p LUK=Roll:
pause
goto DESCRIPTION
:DESCRIPTION
cls
echo Enter a description for your character.
set /p description=Description:
pause
goto EYE
:EYE
cls
echo Type in your eyes.
echo ,,o,0,*,O,.,?,!,@,#^,,+,=,-,_,v,V,',"
set /p eyes=Eyes:
pause
goto NOSE
:NOSE
cls
echo Type in your nose.
echo o,*,!@,#,O,.,,,',",?,,v,V
set /p nose=Nose:
pause
goto MOUTH
:MOUTH
cls
echo Type in your mouth.
echo ,o,O,!,@,#,.,,,',",?,,v,V
set /p mouth=Mouth:
pause
goto FINI
:FINI
cls
echo Your result is this:
echo Name: %name%
echo description: %description%
echo STR: %STR%
echo INT: %INT%
echo WIS: %WIS%
echo DEX: %DEX%
echo AGI: %AGI%
echo LUK: %LUK%
echo END: %END%
echo CHA: %CHA%
echo Portrait:
echo   %eyes% %eyes%
echo    %nose%
echo    %mouth%
pause
goto FOREST1
:FOREST1
cls
echo      *****
echo     *******
echo    *********
echo   ***********
echo   **********
echo    ********
echo     ******
echo     |    |
echo     |    |
echo     |  O |
echo     |    |
echo     |    |
echo     |    |
echo    /      \
echo __/        \__
echo You have newly entered the world. You are in a forest.
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:ROSE
cls
echo You have stumbled upon a rose. Do you wish to pick it up?
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:MPPOTION
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:ORANGE
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:HAMMER
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:SHIELD
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:FOUNTAIN
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:BABY_SPIDER
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:SWORD
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:DEAD_GOBLIN
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:SHIELD
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:GOBLIN
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:LIVINGOAK
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:LIVINGMAPLE
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:LIVINGREDWOOD
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:LIGHTSPRITE
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:DARKSPRITE
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:FLAMESPRITE
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:WATERSPRITE
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:LIGHTNINGSPRITE
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:WINDSPRITE
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto :
:MINDSPRITE
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:MERCHANT
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:TRAP
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
:NATIVEELF
cls
echo
set /p input=N, E, S or W?
if %input%==N goto
if %input%==E goto
if %input%==S goto
if %input%==W goto
Title: Re: Multi user batch file, Multi player batch game, start problems, saving probl
Post by: Helpmeh on February 19, 2010, 04:37:33 AM
Ok, first off, I suggest you start off WAAY smaller. Judging by your code, you need to take smaller steps and learn as you go, instead of jumping into the world of batch scripting head-first.

If you really want to make a batch game now, just do the absolute basics. Health and attack. Don't worry about STR, LUK, faries, shields, etc. until you learn how to do the small version properly first.

If you need guidance, that's what we're here for. You don't have to take my advice, but trust me, you will thank me when you finish your batch game and it works.