Boosting Cooperative NPC Effectiveness and Player Immersion through Behavior Tree Optimization in Gaming
Abstract
The purpose of this research is to improve the adaptability and intelligence of cooperative non-player characters (NPCs) in dynamic gaming situations. Although behavior trees (BTs) are commonly used to simulate non-player character (NPC) behaviors, their rigid hierarchical design restricts NPC adaptability in complex settings. This study employs a variety of optimization techniques, including evolutionary algorithms and hybrid strategies that combine Artificial Neural Networks (ANN) and Monte Carlo Tree Search (MCTS), to improve NPC adaptability. The findings reveal that these strategies enable flexible behavior transitions, with evolutionary algorithms strengthening BT's flexibility in decision-making scenarios and ANN and MCTS significantly increasing NPC intelligence and response capabilities. Furthermore, we highlight fundamental drawbacks in typical BTs, such as static node topologies, which may impede dynamic adaptation. These discoveries lay the groundwork for improving immersive gaming experiences, expanding the knowledge repository for NPC AI research, and providing vital insights into the development of more intelligent cooperative NPCs.
References
- Yoones A Sekhavat. “Behavior trees for computer games”. In: International Journal on Artificial Intelligence Tools 26.02 (2017), p. 1730001.
- Dmitrii Iarovoi, Richard Hebblewhite, and Phoey Lee Teh. “AI’s Influence on Non-Player Character Dialogue and Gameplay Experience”. In: Science and Information Conference. Springer. 2024, pp. 76–92.
- Md Yousuf Hossain and Loutfouz Zaman. “NCCollab: collaborative behavior tree authoring in game development”. In: Multimedia Tools and Applications 82.3 (2023), pp. 4671–4708.
- Xiao Liu et al. “To create intelligent adaptive game opponent by using monte-carlo for the game of Pacman.” In: 2009 Fifth International Conference on Natural Computation. Vol. 5. IEEE. 2009, pp. 598–602.
- Marek Kopel and Tomasz Hajas. “Implementing AI for non-player characters in 3D video games”. In: Intelligent Information and Database Systems: 10th Asian Conference, ACIIDS 2018, Dong Hoi City, Vietnam, March 19-21, 2018, Proceedings, Part I 10. Springer. 2018, pp. 610–619.
- Game Developer. Behavior trees for AI: How they work. Accessed: September 24, 2024. 2024. URL: https: / /www.gamedeveloper.com/programming/behavior-treesfor-ai-how-they-work.
- Miguel Nicolau et al. “Evolutionary behavior tree approaches for navigating platform games”. In: IEEE Transactions on Computational Intelligence and AI in Games 9.3 (2016), pp. 227–238.
- Gertjan M. Chaslot et al. “Monte-Carlo Tree Search: A New Framework for Game AI”. In: Proceedings of the National Conference on Artificial Intelligence and Interactive Digital Entertainment (AIIDE). AAAI Press, 2008, pp. 216–221. URL: https://ojs.aaai.org/index.php/AIIDE/article/view/18700.
- H. L. Cheng, R. K. G. V. Q. Teixeira, and E. M. F. P. S. M. V. A. Oliveira. “Monte Carlo Tree Search in Imperfect Information Games”. In: arXiv preprint arXiv:2103.04931 (2021). URL: https://ar5iv.org/html/2103.04931.
- Author Name(s). “Beyond games: a systematic review of neural Monte Carlo tree search applications”. In: Applied Intelligence 51.5 (2021), pp. 3587–3605. DOI: 10. 1007 / s10489 - 021 - 02288 - w. URL: https: //link.springer.com/article/10.1007/s10489-021-02288-w.
- Author 2 Author 1. “Monte Carlo Tree Search: A Review of Recent Modifications and Applications”. In: ar5iv.org (2021). URL: https://ar5iv.labs.arxiv.org/abs/2103.04931.