2009 AIIDE Behavior Architecture A. Sharifi, R. Zhao and D. Szafron, Learning Companion Behaviors Using Reinforcement Learning in Games, Proceedings of the Sixth Artificial Intelligence and Interactive Digital Entertainment Conference (AIIDE), Stanford, USA, October, 2010, 69-75. abstract or pdf.
Abstract:

Our goal is to enable Non Player Characters (NPC) in computer games to exhibit natural behaviors. The quality of behaviors affects the game experience especially in story-based games, which rely on player-NPC interactions. We used Reinforcement Learning to enable NPC companions to develop preferences for actions. We implemented our RL technique in BioWare Corp.'s Neverwinter Nights. Our experiments evaluate an NPC companion's behaviors regarding traps. Our method enables NPCs to rapidly learn reasonable behaviors and adapt to changes in the game.