what are the codes for these things

thomas00

Commendable
Mar 18, 2016
3
0
1,510
please include codes if certain options i ask require certain codes

so i am creating a text based adventure game in notepad, (and of course saved it as a .bat) but i just started with this. so i dont know all the codes/options yet. do you guys know how to do these things in notepad (please include the code)

how do i let people PRESS a button instead of needing to type the word to go to the next situation? for example if i have 3 options to choose from, and i want to pick option 3, at this moment i need to type the number 3 and then press enter. i code this by:

set /p variable=

if %variable% equ YES goto situation1

if %variable% equ NO goto situation2


but what do i type if i only want people to PRESS the button?
___________________________________________

is it possible to create certain shapes in notepad and let them appear in DOS without letting everything be missplaced?
_________________________________________________________________

how do i prevent peole from proceeding to the next step by just pressing a random button instead of selecting the right option?
________________________________________________________________

is it possible to let a certain text appear for let's say, 5 seconds, then let it dissapear and go to the next destination?
 
Solution


Well, this might be a good time to start turning yourself into a developer.

From your original:
"please include codes if certain options i ask require certain codes"

Every possible action and decision point will require a certain 'code' or command in that batch file. What you are asking here is for someone to write it for you. With no idea of the overall storyline.

Design. Branching - If I choose A, this happens. If I choose B, something else...
im not a developer of any kind, im just a kid that looked it up on wikihow.

 


Well, this might be a good time to start turning yourself into a developer.

From your original:
"please include codes if certain options i ask require certain codes"

Every possible action and decision point will require a certain 'code' or command in that batch file. What you are asking here is for someone to write it for you. With no idea of the overall storyline.

Design. Branching - If I choose A, this happens. If I choose B, something else happens. Etc, etc.

In the history of programming, no one wrote a 'game' as their very first thing.

Start simple:
Write a batch file that asks the user for input, and displays "Number", or "Letter", based on what the user inputs.
If the user presses 0-9, display "Number"
If the user presses A-Z, display "Letter"
If the user presses something else, display "WRONG, LUZER"
 
Solution