Overview
A non-player character, commonly abbreviated NPC, is any character in a game or interactive story that is not controlled by a human player. In digital contexts an NPC is typically controlled by a program or script: for example, a character whose actions are decided by the game, an agent run by a computer, or an entity encountered inside a video game. NPCs can speak, trade, fight, give quests, offer information, or simply create atmosphere.
Key characteristics
- Control and autonomy: NPCs are operated by code rather than by a player. Their complexity ranges from static dialogue lines to sophisticated decision-making systems.
- Role types: Common roles include quest-givers, merchants, companions, enemies, neutral bystanders, and background extras that populate a scene.
- Behavior models: NPCs may follow scripts, state machines, behavior trees, or more advanced AI techniques to determine actions and reactions.
History and development
The concept of characters not controlled by players predates video games and appears in tabletop role-playing, where referees or game masters played many roles. As electronic games developed, simple non-interactive figures evolved into richer NPCs with branching dialogue, voiced lines, and layered behaviors. Over time designers introduced companions with scripted relationships, emergent NPCs in simulation games, and networked NPCs in online worlds.
Uses and examples
NPCs perform several practical functions: they teach mechanics to new players, drive narratives by offering missions or exposition, create economic systems as shopkeepers, and supply combat encounters as enemies. In social or simulation titles, a large cast of NPCs can produce emergent storytelling and believable societies. Designers often balance NPC reliability against unpredictability to achieve intended experiences.
Design considerations and distinctions
When creating NPCs developers weigh performance, believability, and player agency. Important distinctions include the difference between player-controlled characters (PCs) and NPCs, and between scripted NPCs and procedurally-generated or learning agents. Some games also blur the line by allowing short-term control of traditional NPCs or by exposing their internal goals to the player.
Notable facts
- Well-written NPCs can deepen immersion and emotional engagement without increasing player control.
- Advances in dialogue systems and animation have made NPCs more expressive in modern titles.
- In multiplayer settings, NPCs can be used to populate servers, provide services, or act as controlled opponents known as bots.