Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set /a pts=0
- color 0F
- :Menu
- Title 'A game'
- cls
- echo 1. Start Game
- echo 2. Calculator
- echo Please, pick. (use the number)
- set /p answer=
- if %answer% equ 1 goto Start
- if %answer% equ 2 goto Calculator
- if %answer% neq 1 then goto Menu
- :Start
- cls
- echo So, what's your name?
- echo.
- set /p name=
- pause
- echo Hello then, %name%. I keep my name private.
- pause
- set /a pts=%pts%+1
- cls
- :start
- echo Go to the woods or city?
- set /p where=
- if %where% equ woods goto Woods
- if %where% equ city goto City
- if %where% equ Woods goto Woods
- if %where% equ City goto City
- if %where% neq woods goto start
- :Woods
- cls
- echo You lose! : class="re0">( you will now go to start.
- goto menu
- :city
- color 06
- pause
- cls
- echo What is 9 + 10?
- pause
- :math1
- set /p math=
- if %math% equ 19 goto math1
- if %math% equ 21 goto math2
- if %math% neq 19 goto school
- :math1
- pause
- :math2
- pause
- echo fine, fine you go forward
- set /a pts=%pts%-2
- :school
- pause
- echo How do you get this wrong and not the joke? Get banished!
- goto menu
- :Calculator
- cls
- echo Number 1:
- set /p var1=
- echo Number 2:
- set /p var2=
- echo 1 = add, 2 = subtract, 3 = multiply, 4 = divide
- set /p calcop=
- if calcop=1 goto add
- :add
- set /a Answer=%var1%+%var2%
- goto calcfin
- :calcfin
- echo %Answer%
- pause
- cls
- goto Menu
Advertisement
Add Comment
Please, Sign In to add comment