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 vacant House 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.

Bugs

 * If the "Autopause" option is on when talking to a bound NPC, the NPC will thank you, but remain bound and nullify the rescue. Autopause must remain off for the NPC to stand unbound and eventually spawn in their housing.

Multiple NPCs of one type
It is possible for up to three Merchants and two Nurses to spawn on a multiplayer server, given their spawn conditions :