ITM Web of Conferences

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