Skip to content
OpenEnvisionGameMap
GameMap
GameMap
LearnGuides & notes
Measure a level generatorRuntime AI & NPCsWorld modelsAgents, skills & MCP2D & 3D development

Templates & project notes

中文/English

Evaluating decisions and dialogue in game NPCs

  • 3 sections

A guide at a junction recommends the footbridge. While the guide is speaking, the bridge closes. The line may sound entirely in character even though following it now strands the player. This encounter gives us three distinct questions. Did the policy choose a legal route? Did the player understand the hint? Could the game recover when the advice ceased to be valid? Each requires a different observation.

Establish a behavioral baseline

Build one junction with two routes and a switch that closes the bridge. In the baseline, an authored rule reads the open routes and selects one of two hint IDs. The game displays a fixed line for each ID. For a wording experiment, keep the rule and vary only how the selected hint is expressed. For a planning experiment, keep the lines and compare the rule with a policy that selects a hint ID. Altering both components in the same comparison makes a difference in completion rate hard to explain.

Park and colleagues studied the perceived believability of agents with memory, reflection and planning in a social sandbox. A navigation study needs a different outcome. An engine event can establish that the player reached the exit. A participant's judgment is needed to establish whether the guide's explanation made sense to them. Generative Agents

A delayed response at the junction

Record which routes the NPC could observe at request time, the hint it proposed, the routes available when the reply arrived and the line the player actually saw. Give each request a session and sequence number. The game checks route availability before displaying the proposal. After a reload it discards replies from the previous session. State and replay

TrialInterventionObservation that would expose a defect
First visitLeave both routes openThe selected hint names a location outside the map
Bridge closureClose the bridge after the request and before the replyThe displayed line still sends the player across it
Interrupted sessionReload at the junction while a reply is pendingA line from the previous session appears after the reload
Service delayDelay the reply past a declared limitThe player cannot obtain the authored fallback or leave the conversation

Interpret performance at two levels

Run both policies on the same saved states and closure schedules. Report how many proposals pointed to a closed route and how many of those reached the screen. A validation layer may intercept every bad proposal. Reporting only displayed errors would then conceal a weak policy, while counting rejected proposals as misleading advice would misdescribe the player's experience. Record timeouts and fallback use alongside successful responses.

For a study of comprehension, give first-time players one version of the encounter without identifying its author. Ask which route they would take and why before revealing the outcome. Assign versions across participants or counterbalance order across comparable junctions. Seeing the same solution twice teaches the route. Count participants independently of dialogue turns and quote a specific misunderstanding when explaining a failed hint. Designing a development evaluation

Sources & document information

Level generators, runtime characters, world models, and tools that modify a game project.

View Markdown source

Measure a level generator

Previous Page

World models

Next Page

GameMap

A little direction for your next playable world.

Games

  • Game examples

Tools

  • Resources
  • Agent toolkit
  • Testing library

Research

  • Papers
  • Repository research

Learn

  • Guides & notes
GitHub
GameMap

On this page

Establish a behavioral baselineA delayed response at the junctionInterpret performance at two levels