MULTI-AGENT SYSTEMS FOR SIMULATION OF COMPLEX SOCIAL INTERACTIONS NPC

Authors

DOI:

https://doi.org/10.35546/kntu2078-4481.2026.2.37

Keywords:

multi-agent systems, NPC, generative agents, large language models, emergent narrative, procedural quest generation, game artificial intelligence, social simulation, open-world games, behaviour trees

Abstract

Multi-agent systems for simulating complex social interactions of NPCs. The article investigates the architectural foundations of multi-agent systems designed to model complex social interactions among non-player characters (NPCs) in open-world video games. Key components of contemporary generative agent architectures are examined in detail, including observation streams that capture environmental events in natural language, hierarchical memory systems with reflection mechanisms that synthesise episodic experiences into higher-order generalisations, and adaptive planning modules that generate and dynamically revise daily action plans in response to changing contexts and social stimuli. The study draws upon landmark research such as the Generative Agents project (Stanford University, 2023), the Voyager open-ended embodied agent, and the OASIS large-scale social simulation platform to substantiate the transition from scripted NPC behaviour models – prevalent in commercially successful titles including The Elder Scrolls V: Skyrim, The Witcher 3: Wild Hunt, Mass Effect, and The Sims – toward autonomous agent architectures in which each character possesses individual goals, affective states, persistent memory, and the capacity for long-term strategic planning. A conceptual model is proposed for converting individual NPC plans into structured quest chains for the player, grounded in a five-stage cycle: plan generation, conflict analysis, conflict classification by type (resource-based, territorial, social, ideological), quest structure generation through the integration of Hierarchical Task Networks with LLM-driven narrative framing, and feedback incorporation whereby quest outcomes update the world state and trigger new agent plans. The model identifies points of intersection between agent intentions as natural sources of emergent quests, thus shifting the origin of game narrative from authorial scripting to organic inter-agent dynamics. Special attention is devoted to the scalability of such systems, computational cost analysis, the problem of maintaining narrative coherence when dozens of autonomous agents operate simultaneously, and hybrid architectures that combine LLM-based strategic planning with behaviour trees for tactical execution. The conclusions demonstrate that integrating multi-agent planning with procedural quest generation opens realistic prospects for creating game worlds with genuinely organic and unpredictable event development, while acknowledging that computational costs, hallucination risks, and coherence maintenance remain key challenges requiring further research.

References

Delassus D. AI Toolkit – Give a brain to your NPCs, a header-only C++ library. Medium. URL: https://daviddelassus.

medium.com/ai-toolkit-give-a-brain-to-your-npcs-a-header-only-c-library-02a50ae9faed (дата звернення:

05.2025).

Bevilacqua F. Finite-State Machines: Theory and Implementation. Envato Tuts+. 2013. URL: https://code.tutsplus. com/finite-state-machines-theory-and-implementation--gamedev-11867t

Park J. S., O’Brien J. C., Cai C. J., Morris M. R., Liang P., Bernstein M. S. Generative Agents: Interactive Simulacra of Human Behavior. arXiv preprint arXiv:2304.03442. 2023. URL: https://arxiv.org/abs/2304.03442

Yang Z., Zhang Z., Zheng Z. et al. OASIS: Open Agent Social Interaction Simulations with One Million Agents. arXiv preprint arXiv:2411.11581. 2024. URL: https://arxiv.org/abs/2411.11581

Wang G., Xie Y., Jiang Y., Mandlekar A., Xiao C., Zhu Y., Fan L., Anandkumar A. Voyager: An Open-Ended Embodied Agent with Large Language Models. Transactions on Machine Learning Research. 2023. URL: https://arxiv.org/abs/2305.16291

Breault V., Ouellet S., Davies J. Let CONAN Tell You a Story: Procedural Quest Generation. Entertainment Computing. 2021. Vol. 38. 100422. DOI: 10.1016/j.entcom.2021.100422.

Peng X., Quaye J., Rao S. et al. Player-Driven Emergence in LLM-Driven Game Narrative. 2024 IEEE Conference on Games (CoG). IEEE, 2024. P. 1–8. URL: https://arxiv.org/abs/2404.17027

Ao J., Wu F., Wu Y., Swikir A., Haddadin S. Enhancing Game AI Behaviors with Large Language Models and Agentic AI. Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering (FSE). 2025. DOI: 10.1145/3696630.3728553. URL: https://dl.acm.org/doi/10.1145/3696630.3728553

Inworld AI. AI-powered gameplay in experiences from Ubisoft, NVIDIA, Xbox, and indie devs at GDC 2024. Inworld Blog. 2024. URL: https://inworld.ai/blog/gdc-2024

Inworld AI. How AI agents in video games are set to transform gaming. Inworld Blog. 2024. URL: https://inworld.ai/blog/ai-agents-in-video-games-current-and-future-state

Doran J., Parberry I. A Prototype Quest Generator Based on a Structural Analysis of Quests from Four MMORPGs. Proceedings of the 2nd International Workshop on Procedural Content Generation in Games. 2011. DOI: 10.1145/2000919.2000920.

Kim J. H., Shin Y., Park S. LIGS: Developing an LLM-Infused Game System for Emergent Narrative. Proceedings of the Extended Abstracts of the CHI Conference on Human Factors in Computing Systems (CHI EA ’25). ACM, 2025.URL: https://dl.acm.org/doi/10.1145/3706599.3720212

Ashby T., Webb B. K., Knapp G., Searle J., Fulda N. Personalized quest and dialogue generation in role-playing games: A knowledge graph- and language model-based approach. Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems. ACM, 2023. P. 1–20.

Wang F. LLM-based Few-shot Action System for NPCs in Virtual Reality Games. AIMEDIA

: The First International Conference on AI-based Media Innovation. 2025. URL: https://www.thinkmind.org/articles/aimedia_2025_1_30_40024.pdf

Prins V. L., Prins J., Preuss M., Gómez-Maureira M. A. Storyworld: Procedural Quest Generation Rooted in Variety & Believability. Proceedings of the AAAI Conference on AI and Interactive Digital Entertainment. 2023. Vol. 19, No. 1.

Published

2026-05-07