This seems like something that might dovetail rather neatly with some of the work that Richard Evans has done. "Little Text People" for example.
Back in the day he gave a couple of talks about using logic systems & logic programming to control NPC behaviour. The end result of that work went into Little Text People.