LLM-Driven NPCs for Realistic Behavior and Collaboration in Games

dc.contributor.advisorSung, Kelvin
dc.contributor.authorLiu, Sicen
dc.date.accessioned2026-09-16T18:15:48Z
dc.date.issued2026-09-16
dc.date.submitted2026
dc.descriptionThesis (Master's)--University of Washington, 2026
dc.description.abstractRealistic behaviors of non-player characters (NPCs) are important in interactive games and simulations because NPCs influence how players understand and interact with virtual worlds. Large language models (LLMs) provide new opportunities for developing believable and socially responsive NPCs. A review of recent work shows that two areas have received limited attention in existing LLM-based approaches: NPC decision-making grounded in a continuously updated environment and inter-NPC interactions based on observable agent states.This thesis proposes an LLM-driven NPC framework to address these issues. The framework maintains a centralized Global World State that records environment states, player states, and observable states of the NPCs, providing NPC reasoning with explicit information about available entities, their locations, and current conditions. An LLM-based decision-making pipeline uses these structured representations to generate actions, update world states, and maintain behavioral continuity. The framework is implemented as a turn-based simulation in which time advances through discrete ticks. Each tick processes the Environment, Player, and NPC Turns in a fixed order, allowing all three to update the shared world state. Simulation results show that NPC behavior remained consistent with current object availability, object states, locations, and environmental changes while adapting to other agents’ requests and ongoing actions. These capabilities enabled coherent multi-step collaboration among multiple NPCs in a dynamic environment.
dc.embargo.termsOpen Access
dc.format.mimetypeapplication/pdf
dc.identifier.otherLiu_washington_0250O_30251.pdf
dc.identifier.urihttps://hdl.handle.net/1773/57626
dc.language.isoen_US
dc.rightsCC BY-NC-ND
dc.subjectAgent-Based Simulation
dc.subjectArtificial Intelligence
dc.subjectGame AI
dc.subjectLarge Language Models
dc.subjectMulti-Agent Systems
dc.subjectNon-Player Characters
dc.subjectComputer science
dc.subjectArtificial intelligence
dc.subject.otherComputing and software systems
dc.titleLLM-Driven NPCs for Realistic Behavior and Collaboration in Games
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Liu_washington_0250O_30251.pdf
Size:
1.65 MB
Format:
Adobe Portable Document Format