How to do a dialogue system with keyboard input/entry?

:smiley: Hi. I want to make a rpg game with dialogue system (for educational purpose).

I searching something like:

You (the character) find un npc.
The npc greet you and ask for your name.
You introduce your “name” by keyboard.
In the game apears: I’m “NAME”.
The npc respond: Hi “NAME”. (the npc always remember this answer and in some cases can be modified)

Other ex.

A npc ask you: ¿How much is 5 + 7?
You introduce the response by keyboard.
If reponse is correct the npc says: Oh, very well.
And give you an object or increases your experience / dextry points
If reponse is wrong, npc: I’m sorry, I can’t help you
And go away or attack you.

Finally

A npc make you a question and give you some options to chose.

Yes, I think it could be hard but if is it possible find an exemple (blender file) It would be great. Even more if is not plagued of python’s scripts (I’m not confortable with programation :eek::spin::spin::spin: - I’m language teacher/cg artist).

Thanks for read. :slight_smile:

I use both logic bricks and a lot of python scripts.Since i have not learned python yet.I copy and paste code i find.

I use both logic bricks and a lot of python scripts.Since i have not learned python yet.I copy and paste code i find.
About the only things i can do is have it answer questions if you type it the right way.And I can make the blender game engine respond to questions and do things in response to the questions.I am looking for some more code to copy and paste.So i can fool around with a better dialogue system.