NPCs

An NPC (non-playable character) is an automated character that provides some service to players. Most NPCs are vendors, providing items in exchange for coins (and coins in exchange for items). Exceptions are the Guide, who provides information, and the Old Man (before he becomes the Clothier). The Nurse doesn't sell items, but provides Health restoration in exchange for coins. Players can utilize NPCs by standing near them and right-clicking on them.

Conditions
An NPC will spawn when its specific conditions are met, usually by achieving a certain level of advancement in the game. Examples include acquiring 50 silver coins for the Merchant to spawn, or beating your first Boss for the Dryad to appear. See specific NPC requirements in the table below.

An additional condition required by all NPCs is a suitable, vacant Home built by the player. NPCs also requires one "comfort object" (Chair, Throne, Bench, Bed, Toilet) and one "flat surface furniture" (Table, Dresser, Workbench, Tub, Bookcase) for a room to be complete before they will make it their home. The Guide is an NPC that spawns upon creating a world, but will also move into the first house you build. When he dies, he'll need a proper house to respawn, though.

NPCs can be assigned to suitable homes using NPC Flags from the Housing Menu.