Need help with a game
Posted: 26 Mar 2019 18:25
So, I will try to explain my problem. I am making a narrative game in batch, and I have a little problem (in fact I have two). This is the code I have problem with :
*This is basically a chat interface where you discuss with somebody and you have to make choices in the discussion)
When you are writing which option you want to choose I want the text of your answer to be echo just after the "Me: ", now it is just marking 1. The other thing is that I want the all "Answers choice" part to be deleted. To resume, I want this to be printed when you make your choice:
Me: Hello Roger, I am the employee responsible for your file
Roger: I don't understand, What are you saying ?
Thank you for taking the time to read this and for trying to solve my problem !
*This is basically a chat interface where you discuss with somebody and you have to make choices in the discussion)
Code: Select all
echo -----------------
echo ------------------Answers choice----------------------------------
echo "[1] Hello Roger, I am the employee responsible for your file" ---------------------------
echo "[2] I will not go there four ways, you will die if you do not convince me otherwise!"
echo -------------------------------------------------------------------------------------------------------
set /p var=Me:
if %var%==1 goto Answer1.1
if %var%==2 goto Answer1.2
:else1
echo Roger: I don't understand what are you saying?
timeout /t 3 /nobreak >nul
goto Tchat1
:Answer1.1
echo Roger: Hello sir, where should I start?
pause
:Answer1.2
echo Roger: I am really stressed... I
Me: Hello Roger, I am the employee responsible for your file
Roger: I don't understand, What are you saying ?
Thank you for taking the time to read this and for trying to solve my problem !
