Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8293295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:46:31+00:00 2026-06-08T13:46:31+00:00

So, me and two other friends are trying to make a text based game

  • 0

So, me and two other friends are trying to make a text based game running on batch and everything’s going smooth, well, except for this one thing, normally on text based games, when a player doesn’t write the correct input, the game usually responds something like “don’t know what is (the player input)” and in ours, it just bugs and goes on to the next line, so, my question is, how can we be able to fix this and do it the way text based games are supposed to do it?

Thanks!

here is some of the code:

set/p input="What do you want to do?"
if "%input%"=="play" goto :beg: 
if "%input%"=="quit" goto :quit:
if "%input%"=="credits" goto :credits:
if "%input%"=="start" goto :lvl1:
if "%input%"=="ilrdj87imwa" goto :lvl2:
if "%input%"=="valveisevil" goto :lvl3:

pause
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:46:33+00:00Added an answer on June 8, 2026 at 1:46 pm

    Without seeing the code you are using it’s hard to know what’s going wrong.

    Try using something like this

    :LOOP
    set /p input=Enter input
    if %input%==ok (
    goto :CONTINUE
    ) else (
    echo Wrong input
    goto :LOOP
    )
    
    :CONTINUE
    REM Input ok, carry on
    

    Update

    set /p input=What do you want to do?
    if "%input%"=="play" goto :beg 
    if "%input%"=="play again" goto :pa
    if "%input%"=="quit" goto :quit
    
    :play
    echo Play
    pause >nul
    
    :pa
    echo Play again
    pause >nul
    
    :quit
    exit >nul
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make web page which would display two other webpages side
I'm trying to create a Rake task that invokes two other rake tasks. I've
I'm coding with two other friends and we're all using the same repository. For
Just trying to make sure I have understood friends properly with this one class
I am trying to make a WCF communication between two machines in which one
I'm putting together a little game where people are voting to see two other
Me and two other guys recently started our own web development company. We each
I have a basic.xsd and two other A.xsd and B.xsd . A.xsd and B.xsd
I have one class called Global and two other activities. In each activity I
I've read through the two other threads that extract the dll from the application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.