so i used to play game that you have to type to interact with character. what i want to know how can
i collect information what player type. so that i can make my character answer in their needs.
you know game like event[0] or text based adventure type game. if it too hard may be i just use if else or made choice so that player can should.
You’ll have to write what’s called a parser, to interpret the words the user types into actionable commands on your end. Depending on your game, it could be as simple as [verb] [noun] such as “go north” or “fight troll”, which would be trivial to implement using a simple string split. I’d start small and build the available vocabulary over time.
thank for reply sir. i’m really grateful