It's been such a long time since I last used prolog, I barely remember anything. If I remember correctly in prolog you set a goal and some rules and the program reached that goal on its own based on those rules. This could really be helpful in setting npc behaviour for example.
I guess there will be some imperative programming ideas a well. A dialogue afterall is normally a set of if clauses and flag setting.