Development and Evaluation of an LLM-NPC Dialogue Generation Method with Enhanced Character for Sandbox Narrative Games
Tianduo Zhao
Key points
From the paper's conclusion- The results show that, in fact, the state-based method can achieve the strongest overall performance.
Abstract
Traditional fixed script systems have limitations. Large Language Models (LLM) can provide more flexibility for game narrative and NPC dialogue generation, and their use in this field is growing. However, NPC dialogues generated by LLM in sandbox games still face many challenges. It is hard to maintain character background and context information, and the resource consumption is high. To solve these problems, the paper examines how to maintain role consistency in dialogues generated by LLM through three methods that develop step by step. The baseline method only uses the role profiles. Then the state-based method adds the current game status information. At the same time, the memory-based method further introduces short-term and long-term memory. The paper uses the DeepSeek-V4 Flash model to compare these methods. The comparison includes role consistency, context relevance, language naturalness, memory accuracy, token consumption, response delay and overall resource use. The results show that, in fact, the state-based method can achieve the strongest overall performance. Although the memory-based approach helps improve the ability to recall memory, it also produces more repetitive responses, greater performance instability and higher resource consumption.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Lightweight Interactive Narrative AI Technologies for Independent Games: Design and ImplementationITM Web of Conferences · 2026
- LLM-based NPCs in Video Games: A Systematic Mapping StudyarXiv · 2026
- An LLM-Based Behavior Agent with Natural Language Personality ControlEngineering Technology & Applied Science Research · 2025
- Narrative and dialogue generation for video-games: A systematic mappingEngineering Applications of Artificial Intelligence · 2026
- Emotion-Aware and Context-Grounded Dialogue Agents for Personalized Video Game InteractionsarXiv · 2026
- Towards Self-Evolving Narrative Systems: Real-Time Adaptation and Long-Term Optimization with LLMsarXiv · 2026