M
M
Medosmotr2019-03-02 23:36:19
Command line
Medosmotr, 2019-03-02 23:36:19

(I'm a teapot) How to make the command perform actions when you enter a certain character?

Decided to make a text game in IDLE. And I have 2 questions. How to make the command perform actions when entering a certain character?
And the second is about the combat system. Just give me some tips for getting started, if it doesn't work, then I'll abandon it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2019-03-03
@tsklab

@SET /P Inp="Command: "
@IF /I %Inp%==K ECHO Command for K

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question