Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Building and Testing a Game to Compare Scripted and LLM-Driven NPCs: Impact on Player Immersion
Malmö University, Faculty of Technology and Society (TS).
Malmö University, Faculty of Technology and Society (TS).
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

 The gaming industry pushes technological boundaries to create immersive virtual worlds. However, non-playable characters (NPCs) often rely on rigid, scripted dialogue and behavior, which can harm immersion if poorly implemented. Recent advances in large language models (LLMs), such as ChatGPT, have sparked interest in developing more dynamic NPCs that handle unpredictable player behavior. Unlike scripted NPCs, LLM-driven NPCs engage in freeform conversations, responding according to narrative or linguistic constraints. Yet, challenges such as unpredictable and non-coherent dialogue caused by hallucinations, may limit their suitability for linear, storydriven games. This study compares scripted and LLM-driven NPCs in two versions of the same resource management game to evaluate their impact on player immersion. Participants played both versions and provided qualitative feedback via surveys and interaction logs; gameplay metrics such as interaction frequency were also collected. The development processes of both approaches were also examined from the developers’ perspectives to identify appropriate use cases. Findings suggest LLM-driven NPCs enhance immersion through nuanced conversations, though their unpredictability can disrupt gameplay. Scripted NPCs offer consistency and reliability, which may provide smoother experiences in tightly structured narratives. Results highlight a trade-off between immersion and control: LLM-driven NPCs suit exploratory or open-ended games, while scripted NPCs fit narrative-driven experiences requiring tighter control. Additionally, developing LLM-driven NPCs demands greater technical expertise, such as prompt engineering and system design, whereas scripted NPCs rely more on narrative writing and dialogue management. These differences suggest the choice of NPC type should also reflect the development team’s strengths and available resources in addition to the type of impact the NPCs should have in the game.

Place, publisher, year, edition, pages
2025. , p. 81
Keywords [en]
Believability, Large language model (LLM), Non-playable character (NPC), Player Immersion, Scripted NPC, Video Game
National Category
Artificial Intelligence Computer Sciences
Identifiers
URN: urn:nbn:se:mau:diva-78662OAI: oai:DiVA.org:mau-78662DiVA, id: diva2:1984520
Educational program
TS Spelutveckling
Supervisors
Examiners
Available from: 2025-07-16 Created: 2025-07-16 Last updated: 2025-07-16Bibliographically approved

Open Access in DiVA

fulltext(5225 kB)410 downloads
File information
File name FULLTEXT02.pdfFile size 5225 kBChecksum SHA-512
f8ffd1ef833fcb10cc5a1fbc6c1c90172b2b29fea6ce8ba484a3ab0465d875b2e511ac39e7dcfd7f814726a897333015de843ee6be82ea8b56bf50e0203c4648
Type fulltextMimetype application/pdf

By organisation
Faculty of Technology and Society (TS)
Artificial IntelligenceComputer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 413 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 1131 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf