So much of the dialogue is cookie cutter stuff, that each NPC probably accesses the same relevant file,
Venders and vagrants ask the same relevant questions that appear on screen.
The voices change, although many of them are the same like the faces.
i.e. The cobbler and vender in the Rattay town square use the same faces, (I’ll have to make note of their voices and dialogue) so at least two NPCs access the same face file, and if they don’t, this would probably push most consoles to their memory limits? Of course file access time-lag is probably causing pop-ins.
So, it should only involve a few lines of code, but possibly for each NPC.
Might be a lot of work.