Simply Put Psych Courses · The Psychology of Storytelling
Chapter 5: From Psychology to Creative Practice · Lesson 5.2
Designing Characters for Video Games and RPGs
Design NPCs whose objectives, memories and opportunities respond meaningfully to player action.
Lesson 14 of 15 · Course position (not completion)
What you will learn
- Distinguish player agency from the number of available dialogue options.
- Translate character objectives into game mechanics and persistent state.
- Construct conditional NPC responses and test competing rules.
- Design an encounter that remains coherent when players refuse its intended solution.
01 / Player agency
The curious immortality of the quest giver
There is a peculiar sort of patience exhibited by the inhabitants of role-playing games. A village may be experiencing a famine, the local mill may be on fire and its proprietor may have requested our urgent assistance, yet we can spend the following fortnight collecting decorative hats without appreciably worsening the situation. It is a useful concession to the player, although it raises an interesting question about the people we are supposed to be helping. What would the miller do if we never turned up?
In a novel, the author decides both when somebody asks for help and whether the protagonist provides it. The game designer has surrendered at least part of that arrangement. If we want the miller to feel like a person rather than a dispensing mechanism for experience points, we need to establish what they can do without the player. Their objective becomes a problem for the design of the game itself.
Wardrip-Fruin et al. (2009) consider agency as a relationship between the intentions a game encourages and the actions its computational model supports. Merely providing numerous options is insufficient if none accomplishes the sort of thing the player has been led to believe is possible. Conversely, a comparatively constrained encounter can offer meaningful agency if its possibilities are intelligible and consequential. The relevant question is not how many branches we can afford to write, but what the player can reasonably attempt.
Player autonomy, as discussed in Lesson 2.1, concerns the experience of volition. In research applying self-determination theory to games, Ryan et al. (2006) found associations between need satisfaction and aspects of the playing experience. This does not establish an optimum number of choices, nor require every game to offer freedom over its plot. A linear game can afford considerable freedom over how a problem is approached, whilst a branching game may leave the player feeling obliged to select the one answer the designer evidently prefers.
Intention
What does the player reasonably want to attempt?
Affordance
What actions does the game actually support?
Consequence
What changes in the world, and how can the player discover it?
Try the encounter below. It is deliberately small: there is a single objective, a finite window for intervention and an NPC who can make arrangements of her own. The interesting part is the state left behind when the encounter ends.
02 / Playable encounter
The archive at closing time
Mara, a Protector motivated by duty (AOPD), wants to make the archive available safely. Two time slots remain before closing. You have a copy of the clearance report and can choose how to intervene. Mara will organise a temporary off-site service if the archive cannot reopen in time. Each action consumes one slot.
Encounter history
Original deterministic game rules, not a model of actual human psychology. Trust is a writer-defined relationship state, not a psychological score.
03 / From character to system
Giving the character something to do
The mechanics, dynamics and aesthetics (MDA) framework distinguishes the formal rules of a game, the behaviour that arises when those rules are played, and the experiences the designer hopes to facilitate (Hunicke et al., 2004). Here the formal rules include a deadline and the requirement for verified clearance. The dynamics include the player delaying, providing assistance or pursuing an alternative route. The intended experience might be the sense that one is negotiating with somebody who has responsibilities rather than clicking through a menu.
These relationships can also work against us. Suppose our companion repeatedly expresses horror at the exploitation of residents, whilst the game awards us bonuses for exploiting them and the companion never notices. The difficulty is not that a fictional person is inconsistent; we have already established that they can be. The difficulty is that the game offers no discernible connection between the character's stated commitments and the system governing their responses. Perhaps the companion is a hypocrite. If so, the game has yet to make that rather interesting possibility available to us.
From NAF to implementation
NAF can serve as a design vocabulary. Mara's strategy and driver inform the responses we write, but the code must still establish what she knows, whether she trusts the player and what resources are available. It would be a mistake to infer a unique response from her four letters. Even in a small game, safety, trust and deadlines need separate state variables.
Writing every possible conversation as an entirely separate tree becomes expensive. Conditional responses can instead reuse a common scene while acknowledging important differences in the state of the world. Façade, described by Mateas and Stern (2005), is an ambitious example of organising interactive drama through authored behaviours and higher-level story beats. Our workshop is considerably more modest; it uses an ordered list of conditions rather than a drama manager. Both illustrate the importance of deciding how a game selects authored material at runtime.
When two conditions are true, which takes precedence? If a player is trusted but the building has not been cleared, our kindly Protector should not necessarily hand over the keys. Test the rules below, including circumstances your intended playthrough might never encounter. Tabletop game masters can use much the same principle, although they have the enviable luxury of improvisation when a player discovers an unanticipated possibility.
04 / NPC rule testing
What should Mara do now?
Design an ordered rule list for the next encounter. The first matching rule wins. The three conditions are independent: the building may be cleared, the player trusted and the deadline reached. Move rules up or down, and test every combination. Rules express authored design intentions, not a psychological calculation.
Test state
All eight possible states
| Cleared / Trusted / Late | Selected response | Design check |
|---|
Design constraints: never offer archive access without clearance; after the deadline, arrange an off-site service instead. These constraints belong to this fictional scenario and can be revised by the designer.
05 / Apply the psychology
Test the character against the player
Take an NPC from your own cast and give them a problem that exists before the player arrives. Establish a limited set of actions that the player can take, then decide what the character will do if they receive no help. Determine which facts ought to persist into a later scene. If the player lies, for example, distinguish the fact that a lie was told from whether the NPC discovered it.
Write a response for a player who cooperates, one who refuses and one who attempts something inconvenient. Check the responses against the character's existing commitments and the actual constraints of the world. A refusal can be narratively productive if it permits another activity or reveals a meaningful consequence. It need not mean that every quest has a successful outcome.
Finally, test a few deliberately awkward combinations of your variables. A character might trust the player and lack the resources to help them. A faction may dislike them and still have a reason to trade. If our system can accommodate these situations without inventing a fresh personality for each one, the character has become rather more useful to the game.
06 / Course portfolio
Design an NPC who can respond to the player
Use your existing project and cast, or adapt a character into an interactive encounter. Define state, rules and consequences, then test the design against unexpected actions.
Your work stays in this browser unless you download a copy.
Entries use local browser storage, not your Squarespace account. Other devices will not automatically synchronise, and clearing browser data may remove your work. Export a backup. This is a course portfolio format, not yet a Studio project format.
07 / Check your understanding
Before you move on
Choose an answer to each question. This is a practice exercise, not an accredited assessment.
08 / Further reading
References
- Hunicke, R., LeBlanc, M., & Zubek, R. (2004). MDA: A formal approach to game design and game research. Proceedings of the AAAI Workshop on Challenges in Game AI. https://aaai.org/papers/ws04-04-001-mda-a-formal-approach-to-game-design-and-game-research/
- Mateas, M., & Stern, A. (2005). Structuring content in the Façade interactive drama architecture. Proceedings of the First Artificial Intelligence and Interactive Digital Entertainment Conference (pp. 93–98). AAAI Press. https://dblp.org/rec/conf/aiide/MateasS05.html
- Ryan, R. M., Rigby, C. S., & Przybylski, A. (2006). The motivational pull of video games: A self-determination theory approach. Motivation and Emotion, 30, 344–360. https://doi.org/10.1007/s11031-006-9051-8
- Wardrip-Fruin, N., Mateas, M., Dow, S., & Sali, S. (2009). Agency reconsidered. Proceedings of DiGRA 2009 Conference: Breaking New Ground: Innovation in Games, Play, Practice and Theory. https://doi.org/10.26503/dl.v2009i1.369
Continue your creative project
Build the characters behind the game.
Character Forge Studio helps you organise NPC dossiers, competing objectives, factions, relationships and scene-specific states before implementing them in your game engine. It is a narrative planning workspace, not a runtime dialogue engine. Take your cast further without losing track of the people behind the mechanics.
Studio is optional. All course exercises and portfolio exports are free. Windows desktop software · No subscription required.