started · updated
Artificial intelligence is transforming video game NPC behavior
The video game industry is increasingly moving away from traditional scripted non-player characters (NPCs) toward more sophisticated artificial intelligence to create more immersive and reactive digital worlds. Traditional NPC design often relies on rigid instructions that can lead to predictable behaviors and a lack of environmental awareness, which can break player immersion.
During the development of The Witcher 3, CD Projekt Red faced challenges in creating realistic NPC behaviors. Quest designer Philipp Weber noted that while the studio focused on elements like day and night cycles, implementing reactive behaviors led to unintended consequences. For instance, when NPCs were programmed to react to combat with fear, it resulted in glitches where female NPCs would drop their babies while fleeing. To manage complexity, developers use systems where NPCs are given various points of interest to navigate toward rather than fixed paths, allowing for more dynamic movement in crowded areas like Novigrad harbour.