Is there a way so simulate a VERY basic type of A.I. conversation with an NPC? I think it's possible to have the NPC spit out random responses, but i wonder if there is a way to have the NPC respond to certain questions in certain ways so as to make the interaction a little more realistic.
In my game for example i would like to have my character doing random conversation with NPC's, until i manage to have the NPC pronounce a certain word or phrase and that would trigger an event.
For example:
Me: how's it going Granpa?
NPC: I'm good
Me: So... can i have some money?
NPC: Oh my... NO!
Me: pleeeeeease....
NPC: Stop pestering me
Me: pleeeeeease....
NPC: Stop pestering me
Me: Can i have your fake teeth?
NPC: Ok here you go but don't run with them!!
(At this point granpa's teeth appear in the inventory)
Ok i am not going to actually have my character sway an old man out of his fake teeth,
that's gross. Really i swear.
I really hope there is a way to implement something like that in my game, it would be the greatest thing!