In Interactive Fiction (IF), any character other than the protagonist (the one the player controls) who the protagonist is going to interact with. One of the great unsolved problems of IF is getting decent NPCs - one's which won't do or say completely innappropriate or unrealistic things. Part of the problem is the ridiculously huge number of things the NPCs ought to be able to react to. And that's before you even begin to consider trying to make them do stuff on their own initiative. Of course, in essence the problem of making a truly perfect NPC is equivalent to the problem of AI. So it's not going to get solved any time soon. But see believable agent for an account of why that isn't actually necessary to get pretty decent NPCs.