Hey everyone,
I created this word based game and I don't know how to upload a batch file so I'll do it like this:
Basically all you need to do is copy the code below paste it into notepad or notepad++ and save it as a .bat file.
@echo off
cls
:start
cls
echo You are walking down an alleyway when you hear a grunt and a smash
echo inside a building.
echo What do you do?
echo 1. Walk through the open door
echo 2. Carry on as though nothing happened, because it is none of your business.
echo 3. Crouch behind a dumpster and wait for something to happen.
set /p input=
if %input% == 1 goto room2
if %input% == 1. goto room2
if %input% == walk through the door goto room2
if %input% == walk through the open door goto room2
if %input% == 2 goto room3
if %input% == 2. goto room3
if %input% == Carry on goto room3
if %input% == 3 goto room4
if %input% == 3. goto room4
if %input% == crouch goto room4
if %input% == Crouch goto room4
if %input% == crouch behind the dumpster goto room4
if %input% == Crouch behind the dumpster goto room4
cls
:room2
cls
echo As you walk through the open door you feel as though someon is
echo watching you. Suddenly you are knocked out by a bludgeon.
echo You are never seen again by your family.
pause
echo Play again?
set /p playagain=
if %playagain% == yes goto start
if %playagain% == Yes goto start
if %playagain% == no exit
if %playagain% == No exit
if %playagain% == Y goto start
if %playagain% == N exit
if %playagain% == y goto start
if %playagain% == n exit
:room3
cls
echo You arrive at your house unharmed.
echo Play again?
set /p pa99=
if %pa99% == Yes goto start
if %pa99% == yes goto start
if %pa99% == Y goto start
if %pa99% == y goto start
if %pa99% == No exit
if %pa99% == no exit
if %pa99% == N exit
if %pa99% == n exit
:room4
cls
echo As you wait you hear more violent voices. After about 20 minutes a man
echo walks out.
echo What do you do?
echo 1. Wait for ten more minutes just to make sure that no one is in the house.
echo 2. Go inside the house.
echo 3. Walk away as if nothing happened.
set /p input2=
if %input2% == 1 goto room5
if %input2% == 1. goto room5
if %input2% == Wait goto room5
if %input2% == 2 goto room6
if %input2% == 2. goto room6
if %input2% == Go inside goto room6
if %input2% == go inside goto room6
if %input2% == Go inside the house goto room6
if %input2% == go inside the house goto room6
if %input2% == 3 goto room3
if %input2% == 3. goto room3
if %input2% == Walk away goto room3
if %input2% == walk away goto room3
if %input2% == walk goto room3
if %input2% == Walk goto room3
cls
:room5
cls
echo You have waited for ten minutes and nothing has happened.
echo What do you do?
echo 1. Go inside the house.
echo 2. Walk away as if nothing has happened.
set /p input3=
if %input3% == 1 goto room6
if %input3% == 1. goto room6
if %input3% == go inside the house goto room6
if %input3% == Go inside the house goto room6
if %input3% == go inside goto room6
if %input3% == Go inside goto room6
if %input3% == 2 goto room3
if %input3% == 2. goto room3
if %input3% == Walk away goto room3
if %input3% == walk away goto room3
cls
:room6
cls
echo You see a bloody knife but no body/victim.
echo What do you do now?
echo 1. Go upstairs.
echo 2. Take the knife.
echo 3. Back out of the house now realising that this is probably a
echo murder.
set /p input4=
if %input4% == 1 goto room7
if %input4% == 1. goto room7
if %input4% == Go upstairs goto room7
if %input4% == go upstairs goto room7
if %input4% == 2 goto room8
if %input4% == 2. goto room8
if %input4% == Take the knife goto room8
if %input4% == take the knife goto room8
if %input4% == 3 goto room3
if %input4% == 3. goto room3
if %input4% == Back out of the house goto room3
if %input4% == back out of the house goto room3
if %input4% == back out goto room3
if %input4% == Back out goto room3
cls
:room7
cls
echo As you walk upstairs you see blood stains on the floor.
echo What do you do?
echo 1. Scream.
echo 2. Run all the way back home.
echo 3. Continue.
set /p input5=
if %input5% == 1 goto room9
if %input5% == 1. goto room9
if %input5% == scream goto room9
if %input5% == Scream goto room9
if %input5% == 2 goto room10
if %input5% == 2. goto room10
if %input5% == Run goto room10
if %input5% == run goto room10
if %input5% == run back home goto room10
if %input5% == Run back home goto room10
if %input5% == 3 goto room11
if %input5% == 3. goto room11
if %input5% == continue goto room11
if %input5% == Continue goto room11
cls
:room8
cls
echo You have the knife in your hand as a police patrol officer goes by
echo the house.
echo You are accused of the crime and given 20 years for murder.
echo Play again?
set /p pa=
if %pa% == Yes goto start
if %pa% == yes goto start
if %pa% == y goto start
if %pa% == Y goto start
if %pa% == No exit
if %pa% == no exit
if %pa% == N exit
if %pa% == n exit
cls
:room9
cls
echo You messed up by alerting the enemy that you were there, fortunately you
echo also alerted the patrol officer.
echo But, unfortunately the murderer got you first and your body was found
echo next to the victim's.
echo Play again?
set /p pa1=
if %pa1% == Yes goto start
if %pa1% == yes goto start
if %pa1% == y goto start
if %pa1% == Y goto start
if %pa1% == no exit
if %pa1% == No exit
if %pa1% == n exit
if %pa1% == N exit
cls
:room10
cls
echo As you are running you are tripped by the murderer who saw you coming out
echo of the house.
echo Your body was never found.
echo Play again?
set /p pa2=
if %pa2% == Yes goto start
if %pa2% == yes goto start
if %pa2% == Y goto start
if %pa2% == y goto start
if %pa2% == No exit
if %pa2% == no exit
if %pa2% == N exit
if %pa2% == n exit
:room11
cls
echo As you continue you see the victim's mutilated body.
echo What do you do?
echo 1. Call the police.
echo 2. Go back home
set /p input6=
if %input6% == 1 goto room12
if %input6% == 1. goto room12
if %input6% == Call the police goto room12
if %input6% == call the police goto room12
if %input6% == 2 goto room10
if %input6% == 2. goto room10
if %input6% == Go back goto room10
if %input6% == go back goto room10
if %input6% == go back home goto room10
if %input6% == Go back home goto room10
cls
:room12
cls
echo At first the police were suspicious of you, but when you told them your story
echo they thanked you for all you had done.
echo You were then sent for therapy after what you had seen, but you were safe.
pause
goto welldone
:welldone
cls
echo Well done!! You survived! You now live happily with your family.
pause
cls
goto credits
:credits
cls
echo ----------CREDITS----------
echo Developer: Carl Olinger
echo Programmer: Carl Olinger
echo Big boss: Carl Olinger
echo Program used to program: Notepad++
pause
cls
goto playagain
:playagain
cls
echo Play again?
set /p pa3=
if %pa3% == Yes goto start
if %pa3% == yes goto start
if %pa3% == Y goto start
if %pa3% == y goto start
if %pa3% == No exit
if %pa3% == no exit
if %pa3% == N exit
if %pa3% == n exit
Cheers!
post later