IA for the npc chat :
EXAMPLE : When I ask something like what\'s your name and when a npc is waiting for \"give me your name\" its really annoying cause the fun of the quest is really destroyed...
In fact I think a special IA language is required if you are still wanting that kind of way of speaking.
When you speak with someone you hear some words and your mind find a link between them. I think the npc must have that kind of way of speak. the npc is looking for some specific words and has nothing to deals with a specific sentence.
For example :
you wanna know what\'s the name of the npc :
npc is looking for :
What | is / \'s |
or
give me / gimme |
first
and then \"name\"
so in fact the npc is looking for :
\"what\" + verb to be + \"name\"
and not \"what\'s your name\"
maybe Im not clear enough so :
if \"what\"
...if (\"\'s\" or \"is\")
......if (\"name\")
.........ANSWER
......else
.........CANT UNDERSTAND
...else
......CANT UNDERSTAND
elseif(\"give me\" or \"gimme\")
...if(\"name\")
......ANSWER
...else
......CANT UNDERSTAND
else
... CANT UNDERSTAND
To resume you must react with the word and not with the sentences cause it is boring!
another way :
When the npc understand \"what\", it knows it means \"what\"
and npc translate what the player char ask into a command line it knows.
What\'s your name my beauctiful eyed fenki ?
translate :
What + name + beautiful + fenki
-> want to know my name and try to chat me up or control my emotion
ANSWER : Im not that kind of girl if you wanna drink command something and Ill serve you and if not please let me work in peace!