Various Functions of NPCs?

I'm wondering what kind of different functions there are for NPCs, because at the moment, my NPCs are pretty much retarded. I just don't have any ideas for giving them different but useful functions.

The ones I know are below, please add to the list if you know any other functions. :)

1. Story (e.g. regarding the village, story background, etc.)
2. Gameplay information (e.g. 'you can cure poison with a Mega V Antidote!')
3. Quest giver (e.g. starts a quest to find x item)
4. Quest helper (e.g. must talk to this NPC to find out where the item is for an other NPC)
5. Store (e.g. sells weapons)

And then I'm rather stuck. ^^; Say there's a town with NPCs in it, but the town has no background story and the NPCs know nothing of the game's story -- that already removes function 1. Gameplay information has already been given out at the start of the game, so there is no more to be given. If the NPCs does then not have a store or quest, it's basically a useless NPC with uninspirational and useless dialog such as 'I wonder what we'll have for dinner today!'. x_x

Someone that has played a lot of RPGs will probably have a list of ideas. =)
The chances of someone living in a town and knowing absolutely nothing of the town's history and/or rumors, or at the very least popular/famous landmarks, is either five years old or blind, deaf and mute. So even if they don't know the story's background itself, they can contribute to it - besides, I think it's better if the background comes in bits and pieces than all at once, anyway. Unless you use OLD MAGE WHO KNOWS ALL to relate the whole story, or it boils down to one or two major events and there was an eyewitness (think Ocarina of Time here).

They're also used for
6. Comic Relief
7. Direction
8. Minigames
9. Story Immersion Assistance
Darn Tindy beat me to it...

Random filler npcs can still have story significance. Unless it's a boondocks town full of idiots, it's likely that they'd have at least a little knowledge of current events.

Having special npcs is nice, but you should focus on the character of the player characters and the important story characters. A game with bad pcs and good npcs is bad, but a game with good pcs and subpar npcs is acceptable. Unless all of your npcs are stupid peasants who say stupid things, most people will pay them no attention.
Tindy wrote:
9. Story Immersion Assistance

Pretty much. Instruction Manual NPCs are embarassing. Redundant speech bubble NPCs (see: WELCOME TO (TOWN)) are pointless.

I only use flavor and event NPCs myself. People who fit into a setting, and of course people who are doing their own thing, as most people would. Look at Earthbound or Mother 3--Shigesato Itoi knows how to write good NPCs, because they're both contextual and sensible as well as anachronistic and outlandish all at once.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=69226