
Boosting Cooperative NPC Effectiveness and Player Immersion through Behavior Tree Optimization in Gaming
- 1 Jiangsu University, Zhenjiang, Jiangsu, China
* Author to whom correspondence should be addressed.
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.
Keywords
NPC Effectiveness, Tree Optimization, Player Immersion
[1]. Yoones A Sekhavat. “Behavior trees for computer games”. In: International Journal on Artificial Intelligence Tools 26.02 (2017), p. 1730001.
[2]. 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.
[3]. 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.
[4]. 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.
[5]. 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.
[6]. 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.
[7]. 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.
[8]. 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.
[9]. 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.
[10]. 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.
[11]. 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.
Cite this article
Zhu,F. (2025). Boosting Cooperative NPC Effectiveness and Player Immersion through Behavior Tree Optimization in Gaming. Applied and Computational Engineering,131,78-84.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Volume title: Proceedings of the 2nd International Conference on Machine Learning and Automation
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published
version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial
publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and
during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See
Open access policy for details).