How to Make a Simple Batch Trivia Game
Intro: How to Make a Simple Batch Trivia Game
This is a very simple way to make a trivia game. I hope you like it. By the way i also posted a trivia game already so if you dont want to make your own just go to this website
https://www.instructables.com/id/Trivia_Game/
the website posted above uses these exact pictures and following steps so i'm pretty much telling you how i made it
https://www.instructables.com/id/Trivia_Game/
the website posted above uses these exact pictures and following steps so i'm pretty much telling you how i made it
STEP 1: Getting Started...
If you know how to get to notepad go there if you dont then...
first you have to click the "start" button and go to programs, applications, then click on notepad
first you have to click the "start" button and go to programs, applications, then click on notepad
STEP 2: Colors
to begin, type
"@echo off"
then type the color you want your screen and words to be
here is a list of colors
1=blue 9=light blue
2=green A=light green
3=aqua B=light aqua
4=red C=light red
5=violet D=light violet
6=yellow E=light yellow
7=white F=brigth white
8=gray
example... 19 would turn my screen blue with a light blue text
(not very good example very blurry and hard to see... sorry... but you get it)
"@echo off"
then type the color you want your screen and words to be
here is a list of colors
1=blue 9=light blue
2=green A=light green
3=aqua B=light aqua
4=red C=light red
5=violet D=light violet
6=yellow E=light yellow
7=white F=brigth white
8=gray
example... 19 would turn my screen blue with a light blue text
(not very good example very blurry and hard to see... sorry... but you get it)
STEP 3: Some Basic Commands
ok now you should have something like this
@echo off
color cf
i used the colors "cf" but you can type anything you want
ok so if you want a title all you need to do is type
title (insert title here)
dont use ( )
it should look like this
@echo off
color cf
title Computerfaker3's TRIVIA
now if you want it to say something type echo, echo tells the computer to say something so if you type echo Hi it will repeat Hi back to you
echo Hi, welcome to Computerfaker3's Trivia
typing echo. will create a space
i added lines to make it look better
this is what i did
this is completly up to you i did it cause it looks cool and better then just plain
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
@echo off
color cf
i used the colors "cf" but you can type anything you want
ok so if you want a title all you need to do is type
title (insert title here)
dont use ( )
it should look like this
@echo off
color cf
title Computerfaker3's TRIVIA
now if you want it to say something type echo, echo tells the computer to say something so if you type echo Hi it will repeat Hi back to you
echo Hi, welcome to Computerfaker3's Trivia
typing echo. will create a space
i added lines to make it look better
this is what i did
this is completly up to you i did it cause it looks cool and better then just plain
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
STEP 4: Asking Questions
Ok you got the main screen set up
now it should look something like this
@echo off
color cf
title Computerfaker3's TRIVIA
echo.
echo - - - - - - - - - - - - - - -
echo.
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
ok to create questions you have to type alot
first you have to type your question and the answers
echo Who is that little green guy in Star Wars
echo 1 Yoda
echo 2 Darth Vader
echo 3 Luke
you can put however many questions you want just be sure to set it right
now it should look something like this
@echo off
color cf
title Computerfaker3's TRIVIA
echo.
echo - - - - - - - - - - - - - - -
echo.
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
ok to create questions you have to type alot
first you have to type your question and the answers
echo Who is that little green guy in Star Wars
echo 1 Yoda
echo 2 Darth Vader
echo 3 Luke
you can put however many questions you want just be sure to set it right
STEP 5: Creating Answers
after typing your intro type
pause
cls
cls will clear the screen
pause will pause it untill you press something
sometimes you have to type pause twice i dont know why but if you do pls tell me
say you used my example
echo Who is that little green guy in Star Wars
echo 1 Yoda
echo 2 Darth Vader
echo 3 Luke
there are 3 possible answers so now you need to set something to act as the question
set /p (watever you want)=choice1~3
if you have more question type set /p (watever)=choice1~ and then how ever many questions you have, i have 3
in this example i'm going to use starwars
set /p starwars=choice1~3
now you have to make the answers
if %starwars%==1 goto Correct
if makes it a variable
%starwars% means that we are using the starwars we set
==1 means if you type 1
-by the way i'm not a genius so if i got something wrong here feel free to correct me
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
if you have more questions you have to enter them just do the same thing i did
pause
cls
cls will clear the screen
pause will pause it untill you press something
sometimes you have to type pause twice i dont know why but if you do pls tell me
say you used my example
echo Who is that little green guy in Star Wars
echo 1 Yoda
echo 2 Darth Vader
echo 3 Luke
there are 3 possible answers so now you need to set something to act as the question
set /p (watever you want)=choice1~3
if you have more question type set /p (watever)=choice1~ and then how ever many questions you have, i have 3
in this example i'm going to use starwars
set /p starwars=choice1~3
now you have to make the answers
if %starwars%==1 goto Correct
if makes it a variable
%starwars% means that we are using the starwars we set
==1 means if you type 1
-by the way i'm not a genius so if i got something wrong here feel free to correct me
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
if you have more questions you have to enter them just do the same thing i did
STEP 6: Goto
goto means litterally to goto something
so if i type goto correct it will goto correct
to make it go to correct i have to make correct its really simple just type
:correct
then you can type watever you want
echo You got it right!!
be sure to type pause other wise it will say You got it right! for like 1 second and then close
heres what a finished copy looks like
:correct
echo You got it right!!
pause
goto continued
:incorrect
echo Sorry, try again.
pause
goto end
:continued
now continue the steps and when you get done type :end
if you have any questions feel free to ask i should be able to help
everything
@echo off
color cf
title Computerfaker3's TRIVIA
echo.
echo - - - - - - - - - - - - - - -
echo.
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
pause
cls
echo Who is that little green guy in Star Wars
echo 1 Yoda
echo 2 Darth Vader
echo 3 Luke
set /p starwars=choice1~3
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
:Correct
cls
echo You got it right!!
pause
pause
goto continued
:Incorrect
cls
echo Sorry you got it wrong!!
pause
pause
goto end
:continued
cls
echo you made it to the end
pause
pause
:end
so if i type goto correct it will goto correct
to make it go to correct i have to make correct its really simple just type
:correct
then you can type watever you want
echo You got it right!!
be sure to type pause other wise it will say You got it right! for like 1 second and then close
heres what a finished copy looks like
:correct
echo You got it right!!
pause
goto continued
:incorrect
echo Sorry, try again.
pause
goto end
:continued
now continue the steps and when you get done type :end
if you have any questions feel free to ask i should be able to help
everything
@echo off
color cf
title Computerfaker3's TRIVIA
echo.
echo - - - - - - - - - - - - - - -
echo.
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
pause
cls
echo Who is that little green guy in Star Wars
echo 1 Yoda
echo 2 Darth Vader
echo 3 Luke
set /p starwars=choice1~3
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
:Correct
cls
echo You got it right!!
pause
pause
goto continued
:Incorrect
cls
echo Sorry you got it wrong!!
pause
pause
goto end
:continued
cls
echo you made it to the end
pause
pause
:end
STEP 7: Everything
everything
@echo off
color cf
title Computerfaker3's TRIVIA
echo.
echo - - - - - - - - - - - - - - -
echo.
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
pause
cls
echo Who is that little green guy in Star Wars
echo 1 Yoda
echo 2 Darth Vader
echo 3 Luke
set /p starwars=choice1~3
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
:Correct
cls
echo You got it right!!
pause
pause
goto continued
:Incorrect
cls
echo Sorry you got it wrong!!
pause
pause
goto end
:continued
cls
echo you made it to the end
pause
pause
:end
@echo off
color cf
title Computerfaker3's TRIVIA
echo.
echo - - - - - - - - - - - - - - -
echo.
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
pause
cls
echo Who is that little green guy in Star Wars
echo 1 Yoda
echo 2 Darth Vader
echo 3 Luke
set /p starwars=choice1~3
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
:Correct
cls
echo You got it right!!
pause
pause
goto continued
:Incorrect
cls
echo Sorry you got it wrong!!
pause
pause
goto end
:continued
cls
echo you made it to the end
pause
pause
:end
50 Comments
varunr16 8 years ago
How do I run this program?
Homes LMAO 2 years ago
Zach991 9 years ago
@echo off
:loop
echo LOADING...
echo -----------------------------------------------------------------
echo Do not touch anything at the time it is loading and it will crash!
echo -----------------------------------------------------------------
ping localhost -n 5 >nul2
cls
:menu
title The game
goto menu2
:menu1
cls
echo Well there was not a A,B,or C answer try again
pause>nul
goto menu2
:menu2
cls
echo.
echo.
echo -------------------------------
echo Zach and Brian's Gaming QUIZ
echo --------------------------------
echo.
echo.
echo ------------------
echo Type A and press ENTER to play
echo Type B and press ENTER to see colors
echo Type C and press ENTER to type in cheat codes!!!!!
echo ----------------------
@echo off
title The Trivia game
set /p command=Command?
if %command% == a goto spida
if %command% == b goto color
if %command% == A goto spida
if %command% == B goto color
if %command% == C goto Cheats
if %command% == c goto Cheats
else goto menu1
:Cheats
cls
echo Hello type in the cheat below then press enter!
set /p Spiderman=COMMAND?
if %Spiderman% == 2580 goto Creater
if %Spiderman% == 0923 goto Creater
if %Spiderman% == BRIAN goto Creater
if %Spiderman% == Zach goto Creater
if %Spiderman% == .bat goto Creater
else goto Sorry
:Sorry
cls
echo Your cheat code is invalid.
echo ------------------------------------------------------------------------
echo If this is a glitch you think contact Zach at his skype
echo ------------------------------------------------------------------------
echo Zach.ebert1
pause>nul
goto menu2
:Creater
cls
echo Well either you created or helped or is just a friend of Brian or me
pause>nul
cls
echo POINTS:1000000000000000
echo -----------------------
echo WINNNNNNNNER!!!!!!!!!!!
echo -----------------------
echo (This currently dosent do anything)
pause>nul
goto menu
:color
cls
echo What color would you like
echo -------------------------
echo 0 = Black
echo 8 = Gray
echo 1 = Blue
echo 9 = Light Blue
echo 2 = Green
echo A = Light Green
echo 3 = Aqua
echo B = Light Aqua
echo 4 = Red
echo C = Light Red
echo 5 = Purple
echo D = Light Purple
echo 6 = Yellow
echo E = Light Yellow
echo 7 = White
echo F = Bright White
set /p Colors=
if %Colors% == 0 goto Black
if %Colors% == 8 goto Gray
if %Colors% == 1 goto Blue
if %Colors% == 9 goto LB
if %Colors% == 2 goto Green
if %Colors% == A goto LG
if %Colors% == 3 goto Aqua
if %Colors% == B goto LA
if %Colors% == 4 goto Red
if %Colors% == C goto LR
if %Colors% == 5 goto Purple
if %Colors% == D goto LP
if %Colors% == 6 goto Yellow
if %Colors% == E goto LY
if %Colors% == 7 goto White
if %Colors% == F goto BW
if %Colors% == a goto LG
if %Colors% == b goto LA
if %Colors% == c goto LR
if %Colors% == d goto LP
if %Colors% == e goto LY
if %Colors% == f goto BW
:Black
color 0
goto menu
:Gray
color 8
goto menu
:Blue
color 1
goto menu
:LB
color 9
goto menu
:Green
color 2
goto menu
:LG
color A
goto menu
:Aqua
color 3
goto menu
:LA
color B
goto menu
:Red
color 4
goto menu
:LR
color C
goto menu
:Purple
color 5
goto menu
:LP
color D
goto menu
:Yellow
color 6
goto menu
:LY
color E
goto menu
:White
color 7
goto menu
:BW
color F
goto menu
:spida
start cmd.exe
goto spida
:Question1
cls
echo Are you cool?
echo (y/n)
set /p Zach=
:Brian or Zach
cls
echo Hello Creator/User how are you today?
set /p lol=
if %lol% == Good goto woo
if %lol% == Bad goto k
if %lol% == good goto woo
if %lol% == bad goto k
if %lol% == Brian goto kkk
if %lol% == Zach goto kkk
:kkk
cls
echo Hello Creater we knew it was you!
echo -----------------------------------------
echo Please dont take offense to kkk!
echo -----------------------------------------
echo Cheat Codes:0923,2580,Zach,BRIAN,and .bat
echo ---------------------------------
echo Well there you go!
pause>nul
goto Chimmy
if %Brian% == Brian goto Brian or Zach
if %Brian% == Zach goto Brian or Zach
else goto Question1
if %Zach% == y goto hi
if %Zach% == Y goto hi
if %Zach% == n goto Homerun
if %Zach% == N goto Homerun
:Chimmy
echo How are you!
echo ------------
set /p cats
if %cats% === Good goto woo
if %cats% === good goto woo
if %cats% === Bad goto k
if %cats% === bad goto k
:woo
cls
echo Well thats great news!
pause>nul
cls
echo Back to the QUIZ!
pause>nul
cls
goto hi
:k
cls
color 4
echo Well thats bad news :(
pause>nul
cls
echo Back to the QUIZ!
pause>nul
cls
color %Colors%
goto hi
:hi
cls
color A
echo %Brian% Well i guess you are cool!
pause>nul
color %Colors%
cls
echo Do u play arma 3?
echo -----------------
echo (y/n)
set /p Haha=
if %Haha% == y goto Obamacare
if %Haha% == Y goto Obamacare
if %Haha% == n goto dontcare
if %Haha% == N goto dontcare
:Obamacare
cls
color A
echo %Brian% I know you are cool cause you play arma 3
pause>nul
color %Colors%
cls
echo Do you have steam?
echo ------------------
echo (y/n)
set /p oldman=
if %oldman% == y goto Steam
if %oldman% == Y goto Steam
if %oldman% == N goto Hater
if %oldman% == n goto Hater
goto Steam
:Steam
cls
color A
echo %Brian% Wow you are a pretty good gamer!
pause>nul
color %Colors%
cls
echo What is better COD or ARMA
set /p COD=
if %COD% == ARMA goto Correct
if %COD% == arma goto Correct
if %COD% == COD goto Wrong
if %COD% == cod goto Wrong
goto Correct
:Correct
cls
color 2
echo Wow you have made it pretty far %Brian%!
echo --------------------------------------------
echo Hit me or Brian up on skype!
echo ---------------------------------------------
echo (Main Scripter) Zach.ebert1
echo ---------------------------------------------
echo (Tutor)( Very Helpful Scripter ) skullface380
pause>nul
cls
goto Next
:Next
echo Is steam a non-profit company?
echo (y/n)
set /p NoN=
if %NoN% == Y goto Heaven
if %NoN% == y goto Heaven
if %NoN% == N goto UnderWorld
if %NoN% == n goto UnderWorld
:Hater
cls
echo WOW %Brian% YOU ARENT A ACTUAL GAMER GO FIND SOME FRIENDS
echo -----------------------------------------------------
echo YOU DONT HAVE STEAM!!!!!!!!!!!!!
echo -----------------------------------------------------
echo STUPID NON GAMER JUST DIE DIE IN ARMA OR DID YOU LIE!
color 4
pause>nul
:UnderWorld
cls
color 4
echo %Brian% Well apparently you lied to me!
echo -------------------------------------------------------------
echo Well you arent trust worthy enough to take the truthful test!
echo -------------------------------------------------------------
pause>nul
:Heaven
cls
echo Well thanks for taking a honest test so far!
echo --------------------------------------------
echo We still have more questions!
pause>nul
goto Question
:Question
cls
echo Does steam have a sale every christmas or every honika?
set /p l=Answer?
if %l% == Christmas goto close
if %l% == christmas goto close
if %l% == Honika goto Out
if %l% == honika goto Out
:Out
echo Sorry %Brian% :(
pause>nul
goto menu2
:close
cls
echo Wow you are nearly done well done!
echo "Clap Clap" "Clap Clap" "Clap Clap"
pause>nul
cls
echo Proceed to next the next question? (Press enter)
pause>nul
goto NextQuestion
:NextQuestion
goto menu2
:Homerun
cls
color 4
echo Well lets try this again
pause>nul
color %Colors%
goto menu
:dontcare
cls
goto goingtomenu
:goingtomenu
cls
echo Im done with you go play arma 3 oh wait you dont have it!
echo -----------------------------------------------------------
color 4
echo GO TO THE UNDERWORLD!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo -----------------------------------------------------------
echo (its actually menu)
pause>nul
goto menu
eduardite 3 years ago
You have been warned
MicahC7 7 years ago
@echo off
color de
title Micah's TRIVIA
echo.
echo ---------------
echo.
echo Welcome to Micah's TRIVIA!!!!!
echo.
echo ---------------
echo.
set lives=3
pause
cls
:question1
echo lives=%lives%
echo Question 1:
echo What Is My Middle Name?
echo.
echo ---------------
echo.
echo 1. John
echo 2. Randell
echo 3. Andre
set /p MiddleName =C:/
if %MiddleName%==1 goto incorrect1
if %Middlename%==2 goto correct1
if %Middlename%==3 goto incorrect1
goto incorrect1
:incorrect1
cls
echo That was an incorrect answer!
pause
goto question1
:Correct1
cls
echo Thats right!!
pause
TylerW94 7 years ago
tuna6211 8 years ago
OMG AWESOME I WILL TEST IT NOW WISH IT WORKS!!!
andrewjoseph.charles 9 years ago
How do you say what is your name and then i type the name and then the cmputer says hello with your name
JanekM1 9 years ago
You do it like this
echo Welcome %username% to my new game.
%username% will change to the name of the logged in user
ZombieS1 9 years ago
i know how to do that! what you need to do is type 'set [name*]=' once they type in something, to get their answer to turn up somewhere else in the game (or quiz, whatever you're making) type %name*% in the text. your welcome!
*the word 'name' can be anything you want
supar.star.sean 9 years ago
l ove it wow
supar.star.sean 9 years ago
l ove it wow
supar.star.sean 9 years ago
l ove it wow
jamie.scott.311 9 years ago
thanx computerfaker3 i made my first one from your "walkthrough"if you will, and it worked perfectly. now i've got eight more on "How well do you know(insert game here)'s
Erotic030me 10 years ago
@echo off
color cf
cls
:Password
Set input=
set /p input= Password (input then press enter) :
if %input%==1564 goto YES
if not %input%==1564 goto NO
:YES
echo Login Successful
goto QuestionOne
:NO
Echo INCORRECT PASSWORD
goto Password
:QuestionOne
title Nope! The Game.
echo.
echo -----------------
echo.
echo Welcome to Nope! The Game.
echo.
echo -----------------
echo.
pause
set /p question= Whats up? 1.Much! 2.Nothing much. 3.Nothing.
echo 1 Much!
echo 2 Nothing much.
echo 3 Nothing.
if %question%==1 goto AnswerOne
if %question%==2 goto AnswerTwo
if %question%==3 goto AnswerThree
pause>nul
:AnswerOne
echo.
echo ---------
echo Nice
echo ---------
echo.
goto Main
pause>nul
:AnswerTwo
echo.
echo ---------
echo Oh ok.
echo ---------
echo.
goto Main
pause>nul
:AnswerThree
echo.
echo ---------
echo oh.
echo ---------
echo.
goto Main
pause>nul
:Main
echo.
echo Ok, lets get started
echo.
set /p Start= Start 1
set /p Options= Options 2
pause>nul
koolkaleb 10 years ago
My Game, you may copy but KEEP THE BOLD
@echo off
color 04
TITLE Find Your Way Home!(BETA)
echo Time To Play"Find Your Way Home (BETA)!!! NOTE: THIS GAME IS A WORK IN PROGRESS
pause
cls
echo Originally Made By koolkaleb <------(You may Copy Code, BUT DO NOT REMOVE THIS!)Remove the arrow and right, keep Made By koolkaleb36:start
echo Pick Your Path By Typing The Number Of The Path You Want, Then Press Enter!
pause
cls
echo Hai! Let's Find Your Home!
pause>nul
cls
echo.
echo.
echo.
echo.
echo Ready To Play Find Your Way Home? A game of chance?
echo.
echo.
echo.
pause>nul
cls
echo Choose Your Path
echo 1 Path Through A Dark Forest
echo 2 Path Of Rainbows
echo 3 Path Of A Regular Road
set/p a=CHOOSE
if %a%==1 goto correct
if %a%==2 goto not
if %a%==3 goto not
:correct
cls
echo You Survived!
echo.
pause
goto b
:not
cls
echo You Died... Sorry
pause
goto start
:b
echo Choose Your Path
echo 1 Yellow Path
echo 2 A Path Through A Dark Alley
echo 3 A Path Through A Toy Factory
set/p b=CHOOSE
if %b%==3 goto correct
if %b%==2 goto not
if %b%==1 goto not
:correct
cls
echo You Survived!
echo.
pause
goto WINNER
:not
cls
echo You Died... Sorry
pause
goto start
:WINNER
echo You Won And Got Back Home!
pause
cls
echo Want Me To Make One Of These Games For You, For FREE?!?!?!?
pause
echo Then email me at koolkaleb36@gmail.com!
pause
cls
echo Check Out Our Site For The Updates!
pause
echo (SITE COMING SOON)
pause
cls
echo Hope You Enjoyed!
pause
:end
xXShazyXx 11 years ago
Get it here if you want |
\/
@echo off
cls
echo LOADING GAME...
ping localhost -n 5 >nul
@echo off
:loop
:menu
cls
color 0b
echo The Quizz Game
ping localhost -n 5 >nul
color 0e
:loop
:menu
echo copyrite Shazy 2013
echo===========
echo 1)Start
echo 2)Options/Info
echo 3)exit
echo===========
set /p hi=
if not defined hi (
cls
goto loop
)
if %hi% == 1 goto Game
if %hi% == 2 goto Options/Info
if %hi% == 3 exit
:menu1
cls
color 0b
echo The Quizz Game
ping localhost -n 5 >nul
color 0a
:loop
:menu
echo copyrite Shazy 2013
echo===========
echo 1)Start
echo 2)Options/Info
echo 3)exit
echo===========
set /p hi=
if not defined hi (
cls
goto loop
)
if %hi% == 1 goto Game
if %hi% == 2 goto Options/Info
if %hi% == 3 exit
:menu2
cls
color 0b
echo The Quizz Game
ping localhost -n 5 >nul
color 0b
:loop
:menu
echo copyrite Shazy 2013
echo===========
echo 1)Start
echo 2)Options/Info
echo 3)exit
echo===========
set /p hi=
if not defined hi (
cls
goto loop
)
if %hi% == 1 goto Game
if %hi% == 2 goto Options/Info
if %hi% == 3 exit
:menu3
cls
color 0b
echo The Quizz Game
ping localhost -n 5 >nul
color 0c
:loop
:menu
echo copyrite Shazy 2013
echo===========
echo 1)Start
echo 2)Options/Info
echo 3)exit
echo===========
set /p hi=
if not defined hi (
cls
goto loop
)
if %hi% == 1 goto Game
if %hi% == 2 goto Options/Info
if %hi% == 3 exit
:menu4
cls
color 0b
echo The Quizz Game
ping localhost -n 5 >nul
color 0d
:loop
:menu
echo copyrite Shazy 2013
echo===========
echo 1)Start
echo 2)Options/Info
echo 3)exit
echo===========
set /p hi=
if not defined hi (
cls
goto loop
)
if %hi% == 1 goto Game
if %hi% == 2 goto Options/Info
if %hi% == 3 exit
:menu5
cls
color 0b
echo The Quizz Game
ping localhost -n 5 >nul
color 0f
:loop
:menu
echo copyrite Shazy 2013
echo===========
echo 1)Start
echo 2)Options/Info
echo 3)exit
echo===========
set /p hi=
if not defined hi (
cls
goto loop
)
if %hi% == 1 goto Game
if %hi% == 2 goto Options/Info
if %hi% == 3 exit
:game
cls
echo Name?
set /p name=
echo Hello %name%! Would you like to start (y/n)
set /p start=
if %start% == y goto lvl1
if %start% == Y goto lvl1
if %start% == n goto menu
if %start% == N goto menu
goto start game
:Options/Info
cls
echo============================
echo The Quiz Game, is a game of IQ.
echo This game will ask you a variety of questions,
echo some may be hard and some may be easy,
echo but thats for You to find out
echo============================
echo choose a Menu Colour
echo colours=0a,Light Green/ 0b,Light Aqua/ 0c,Light Red/ 0d,Light purple/
echo 0e,Light Yellow/ 0f,White
set /p color=
%color%
if %color%== 0a goto menu1
if %color%== 0b goto menu2
if %color%== 0c goto menu3
if %color%== 0d goto menu4
if %color%== 0e goto menu
if %color%== 0f goto menu5
:lvl1
cls
echo lvl 1
echo what does 1+2+3+4+5+6+7+8+9 equal
echo a.45
echo b.50
echo c.62
echo d.55
set /p ha=
if %ha% == a goto crl
if %ha% == b goto wrl
if %ha% == c goto wrl
if %ha% == d goto wrl
goto lvl1
:crl
echo Correct!
echo.
echo Continue? (y/n)
set /p ha=
if %ha% == y goto lvl2
if %ha% == Y goto lvl2
if %ha% == n goto lvl1
if %ha% == N goto lvl1
goto crl
:wrl
echo wrong
echo .
pause
cls
echo Retry? (y/n)
set /p start=
if %start% == y goto lvl1
if %start% == Y goto lvl1
if %start% == n goto menu
if %start% == N goto menu
goto start game
:lvl2
cls
echo lvl 2
echo which planet is the 5th from the sun?
echo a.Venus
echo b.Jupiter
echo c.Uranus
echo d.Earth
set /p hi=
if %hi% == a goto wrl
if %hi% == b goto crl
if %hi% == c goto wrl
if %hi% == d goto wrl
goto lvl2
:crl
echo Correct!
echo.
echo Continue? (y/n)
set /p hi=
if %hi% == y goto lvl3
if %hi% == Y goto lvl3
if %hi% == n goto lvl2
if %hi% == N goto lvl2
goto crl
:wrl
echo wrong
echo .
pause
cls
echo Retry? (y/n)
set /p start=
if %start% == y goto lvl2
if %start% == Y goto lvl2
if %start% == n goto menu
if %start% == N goto menu
goto start game
@echo off
:lvl3
cls
echo lvl 3
echo which of the following colours has the most pigments?
echo a.Blue
echo b.Orange
echo c.Brown
echo d.Red
set /p hi=
if %hi% == a goto wrl
if %hi% == b goto wrl
if %hi% == c goto crl
if %hi% == d goto wrl
goto lvl3
:crl
echo Correct!
echo.
echo Continue? (y/n)
set /p hi=
if %hi% == y goto lvl4
if %hi% == Y goto lvl4
if %hi% == n goto lvl3
if %hi% == N goto lvl3
goto crl
:wrl
echo wrong
echo .
pause
cls
echo Retry? (y/n)
set /p start=
if %start% == y goto lvl3
if %start% == Y goto lvl3
if %start% == n goto menu
if %start% == N goto menu
goto start game
@echo off
:lvl4
cls
echo lvl 4
echo who was the first man launched in to space?
echo a.Mike Collins
echo b.Neil Armstrong
echo c.Yuri gagarin
echo d.Buzz Aldrin
set /p hi=
if %hi% == a goto wrl
if %hi% == b goto wrl
if %hi% == c goto crl
if %hi% == d goto wrl
goto lvl4
:crl
echo Correct!
echo.
echo Continue? (y/n)
set /p hi=
if %hi% == y goto lvl5
if %hi% == Y goto lvl5
if %hi% == n goto lvl4
if %hi% == N goto lvl4
goto crl
:wrl
echo wrong
echo .
pause
cls
echo Retry? (y/n)
set /p start=
if %start% == y goto lvl4
if %start% == Y goto lvl4
if %start% == n goto menu
if %start% == N goto menu
goto start game
@echo off
:lvl5
cls
echo lvl 5
echo Who was the Original owner of Apple?
echo a.Steve Jobs
echo b.Bill Gates
echo c.Jeorge Lucas
echo d.Harry Potter
set /p hi=
if %hi% == a goto crl
if %hi% == b goto wrl
if %hi% == c goto wrl
if %hi% == d goto wrl
goto lvl5
:crl
echo Correct!
echo.
echo Continue? (y/n)
set /p hi=
if %hi% == y goto lvl6
if %hi% == Y goto lvl6
if %hi% == n goto lvl5
if %hi% == N goto lvl5
goto crl
:wrl
echo wrong
echo .
pause
cls
echo Retry? (y/n)
set /p start=
if %start% == y goto lvl5
if %start% == Y goto lvl5
if %start% == n goto menu
if %start% == N goto menu
goto start game
@echo off
:lvl6
cls
echo lvl 6
echo Which of these deceased singers was assasinated?
echo a. Freddie Mercury
echo b. John Lennon
echo c. Elvis Presley
echo d. Michael Jackson
set /p hi=
if %hi% == a goto wrl
if %hi% == b goto crl
if %hi% == c goto wrl
if %hi% == d goto wrl
goto lvl6
:crl
echo Correct!
echo.
echo Continue? (y/n)
set /p hi=
if %hi% == y goto lvl7
if %hi% == Y goto lvl7
if %hi% == n goto lvl6
if %hi% == N goto lvl6
goto crl
:wrl
echo wrong
echo .
pause
cls
echo Retry? (y/n)
set /p start=
if %start% == y goto lvl6
if %start% == Y goto lvl6
if %start% == n goto menu
if %start% == N goto menu
goto start game
@echo off
:lvl7
cls
echo lvl 7
echo Who created the first light bulb?
echo a. Thomas Edison
echo b. Hiram Stevens
echo c. Joseph Swan
echo d. Albert Einstein
set /p hi=
if %hi% == a goto crl
if %hi% == b goto wrl
if %hi% == c goto wrl
if %hi% == d goto wrl
goto lvl6
:crl
echo Correct!
echo.
echo Continue? (y/n)
set /p hi=
if %hi% == y goto lvl8
if %hi% == Y goto lvl8
if %hi% == n goto lvl7
if %hi% == N goto lvl7
goto crl
:wrl
echo wrong
echo .
pause
cls
echo Retry? (y/n)
set /p start=
if %start% == y goto lvl7
if %start% == Y goto lvl7
if %start% == n goto menu
if %start% == N goto menu
goto start game
@echo off
:lvl8
cls
echo lvl 8
echo how old was Sir Edmund Hillary when he died?
echo a. 79
echo b. 92
echo c. 86
echo d. 88
set /p hi=
if %hi% == a goto wrl
if %hi% == b goto wrl
if %hi% == c goto wrl
if %hi% == d goto crl
goto lvl6
:crl
echo Correct!
echo.
echo Continue? (y/n)
set /p hi=
if %hi% == y goto lvl9
if %hi% == Y goto lvl9
if %hi% == n goto lvl8
if %hi% == N goto lvl8
goto crl
:wrl
echo wrong
echo .
pause
cls
echo Retry? (y/n)
set /p start=
if %start% == y goto lvl8
if %start% == Y goto lvl8
if %start% == n goto menu
if %start% == N goto menu
goto start game
@echo off
sgarciam98 11 years ago
here is my game.
@echo off
title GAME
color 0a
echo.
echo.
pause>nul
cls
echo.
set /p name= Enter your name
echo.
pause>nul
cls
echo MENU
echo Press a number and press enter.
:main
echo 1--start game
echo 2--how to play
echo 3--exit
set /p n=enter number
if%n%==1 goto game
if%n%==2 goto inst
if%n%==3 goto end
:inst
cls
echo.
echo press a number and confirm your selection with enter
echo.
echo.
echo.
pause>nul
goto main
:game
cls
echo.
echo %name%, you are lost in the forest after hunting, you only have three matches, a shotgun with ten bullets, a rifle with five bullets and a gun with 9 bullets.
echo.
echo You have managed to make a fire.
pause>nul
:end
flag[delete]
sgarciam98 11 years ago
here is my game.
@echo off
title GAME
color 0a
echo.
echo.
pause>nul
cls
echo.
set /p name= Enter your name
echo.
pause>nul
cls
echo MENU
echo Press a number and press enter.
:main
echo 1--start game
echo 2--how to play
echo 3--exit
set /p n=enter number
if%n%==1 goto game
if%n%==2 goto inst
if%n%==3 goto end
:inst
cls
echo.
echo press a number and confirm your selection with enter
echo.
echo.
echo.
pause>nul
goto main
:game
cls
echo.
echo %name%, you are lost in the forest after hunting, you only have three matches, a shotgun with ten bullets, a rifle with five bullets and a gun with 9 bullets.
echo.
echo You have managed to make a fire.
pause>nul
:end
Spade6sic6 14 years ago