Non-player character
A non-player character (NPC), sometimes known as a non-person character or non-playable character, in a game is any character that is not controlled by a player. In video games, this usually means a character controlled by the computer through artificial intelligence. In traditional tabletop role-playing games the term applies to characters controlled by the gamemaster or referee, rather than another player.
Role-playing games
In a traditional tabletop role-playing game such as Dungeons & Dragons, an NPC is a fictional character portrayed by the gamemaster. If player characters form the narrative's protagonists, non-player characters can be thought of as the "supporting cast" or "extras" of a roleplaying narrative. Non-player characters populate the fictional world of the game, and can fill any role not occupied by a player character (PC). Non-player characters might be allies, bystanders or competitors to the PCs.
NPCs thus vary in their level of detail. Some may be only a brief description ("You see a man in a corner of the tavern"), while others may have complete game statistics and backstories of their own.