Offline Planning with Hierarchical Task Networks in Video Games


  • John-Paul Kelly Australian National University
  • Adi Botea Australian National University
  • Sven Koenig University of Southern California



Artificial intelligence (AI) technology can have a dramatic impact on the quality of video games. AI planning techniques are useful in a wide range of game components, including modules that control the behavior of fully autonomous units. However, planning is computationally expensive, and the CPU and memory resources available to game AI modules at runtime are scarce. Offline planning can be a good strategy to avoid runtime performance bottlenecks. In this work, we apply hierarchical task network (HTN) planning to video games. We describe a system that computes plans offline and then represents them as game scripts. This can be seen as a form of generating game scripts automatically, replacing the traditional approach of composing them by hand. We apply our ideas to the commercial game The Elder Scrolls IV: Oblivion, with encouraging results. Our system generates scripts automatically at a level of complexity that would require a great human effort to achieve.




How to Cite

Kelly, J.-P., Botea, A., & Koenig, S. (2021). Offline Planning with Hierarchical Task Networks in Video Games. Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, 4(1), 60-65.