Dialogue in video games is often scripted in advance, limiting the player’s
choice of responses. Large language models enable more natural conversa-
tions with non-player characters, but ensuring coherent and logical responses
remains a major challenge. We developed a game prototype featuring nine
non-player characters and fourteen quests, in which the model generates re-
sponses based on information about the characters, the game world, and
previous conversations. By analysing conversations from fourteen players
and a survey completed by twelve participants, we compared two approaches
to providing instructions and information to the model: a strictly structured
approach and a more loosely structured one. The dialogue analysis revealed
both successful interactions and contradictions and other inconsistencies un-
der both approaches. Neither approach showed a clear advantage over the
other. Differencesinsurveyratingsof theplayerexperiencewerealsonotsta-
tistically significant. The thesis contributes a working system that connects
dialogue generation with the execution of in-game actions and demonstrates
its capabilities and limitations.
|