NPCs are friendly automated Non-Player Characters that provide services to players.
Players can utilize NPCs by standing near them and using the ⚷ Open / Activate button on them. Most NPCs are vendors, selling items to players in exchange for coins, and can be sold items by a player to obtain coins. Some NPCs also perform other functions.
Most NPCs are "Town" NPCs, appearing after various milestones are achieved in game advancement (details below). They move into structures the player must generally build, known as houses, which are generally required for Town NPCs to remain available. Each NPC will need its own house.
Town NPCs that have moved into houses reduce enemy spawn rates in the area, an effect that increases the more of them are present. With three or more Town NPCs nearby, enemies generally stop spawning on or near the visible screen altogether. (Though not in Expert Mode.) Players tend to utilize this effect by building large structures ("Towns" or "Bases") with several integrated houses, to serve as their safe haven. These reductions are usually overridden by events like Blood Moons or Goblin Invasions, during which spawn rates return to normal or are elevated, and enemies will once again attack players and NPCs in the area.
Town NPCs generally walk around during the day. They remain still in their assigned houses at night. NPCs have limited health and can take damage, and ultimately die from enemies, traps, lava, or by drowning in water (); though they cannot be attacked directly by players (outside of special Voodoo Doll accessories or Rotten Eggs). They do not suffer from fall damage and their health regenerates over time. Town NPCs gain defense and damage boosts based on which bosses have been defeated in the current world.
If an NPC is killed, they will respawn after a delay, as long as a suitable vacant house is still available. If it has an inventory requirement to spawn (Merchant, Demolitionist, Arms Dealer, Dye Trader) they need to have the requirement met again to respawn.
Occasionally, NPCs sit in chairs. They also randomly "talk" to each other or the player (shown as mouth movement and speech bubbles). Most NPCs also have an attack method, which they will use to defend themselves against enemies in the vicinity.
There are currently 25 / 23 / 22 / 21 / 19 Town NPCs, 7 / 6 of whom normally appear in Hardmode. An additional 3 / 2 / 1 NPCs can be encountered that do not move into houses.
Housing[edit | edit source]
Each Town NPC requires a suitable, vacant house. A house is a room of a certain size enclosed by a frame of blocks, with user-placed background walls, along with a valid light source, flat surface item, and comfort item (see House for full details). Two NPCs can't live in the same house at the same time. Houses must not be located near Corruption or Crimson, and if those biomes spread too close to an occupied house, the NPC living there may move out from that house.
If a house occupied by an NPC is damaged in a way that makes it invalid, the NPC will move out and walk around the area until a suitable house is restored. If there are vacant houses available in the world, the NPC may move into one of them. If the NPC gets killed and doesn't have a home, it will not respawn till a house is built.
The Guide and Old Man are unique in that they always spawn upon creating a world. The Guide will usually move into the first house built. The Old Man does not move into a house, but rather remains near the Dungeon's entrance, and respawns the following day if killed (while Skeletron has not yet been defeated).
Buying and selling[edit | edit source]
Items can be bought simply by pressing the ⚷ Open / Activate button on an NPC and taking items from its inventory while their cost in coins is available in the player's inventory ( or in the combined player's savings). Holding the button on stackable items allows the player to buy the item in bulk. The buy speed increases the longer the button is held.
Some NPCs sell biome-specific items when they are spoken to in certain biomes. They can be transported there by housing them there and waiting for the night (they will be teleported to their house at night once off-screen) or by using a King or Queen Statue. Note that the NPC does not need to live in the biome; talking to it while the player is in the biome is sufficient.
All NPC vendors can also be used to sell unwanted or surplus items to gain coins. The unwanted item(s) must be in the player's inventory. Hovering over the item while the NPC's inventory screen is open will display its sell value. Items are always sold to vendors at one-fifth of their purchase price. Not all items have a sell value (very common items such as Dirt or Wood have no value). To sell the item, move it into the NPC's inventory.
Sales to ( and purchases from) NPCs can be cancelled while the NPC's inventory screen is still open: Sold items can be taken back in exchange for the amount they were sold for (and on Desktop, purchased items can be sold back in exchange for the amount they were purchased for).
All NPC vendors have the same base buying and selling price. Item prices can be decreased by equipping a Discount Card, which is a rare drop from Pirate Invasions. On Desktop, prices can also be higher or lower based on the NPC's happiness level .
Town NPCs[edit | edit source]
Listed in the order in which they are generally likely to be acquired.
Pre-Hardmode[edit | edit source]
|NPC||Acquired When||Preferred Biome||Description||Drops||Defending Weapon|
|Guide||Starting a new world.||Forest||Provides tips, a general guide on how to get other NPCs. Lists all recipes an item shown to him can be used for.||Green Cap
(100%, only when named Andrew / always)
Wooden Bow (with Wooden Arrows)
Wooden Bow (with Flaming Arrows)
|Merchant||All players combined have more than
||Forest||Sells basic tools and supplies.||n/a||Throwing Knife|
|Nurse||A player has more than 100 health.||Hallow||Heals players and cancels debuffs in exchange for coins.||n/a||Syringes|
(Thrown, targets NPCs, Heals)
|Demolitionist||A player has an explosive in their inventory.||Underground||Sells explosives.||n/a||Grenades|
|Dye Trader||A player acquires a dye item, or any item used to craft Dye.||Desert||Sells the Dye Vat crafting station. Provides rare dyes in exchange for Strange Plants.||Exotic Scimitar
|Angler||Found and spoken to in an Ocean biome.||Ocean||Gives fishing quests and rewards players for completing them.||n/a||Frost Daggerfish|
|Zoologist||10% of progress has been made filling the Bestiary.||Forest||Sells critter related items.||n/a||Claws|
|Dryad||A boss is defeated other than King Slime, Lepus or the Wall of Flesh.||Jungle||Sells nature/Corruption/Crimson items, and can report the percentage of Corruption/Crimson and Hallow in the world.||n/a||Dryad's Blessing |
(Area Effect, Buffs Players & Harms Enemies)
|Painter||8 / 4 other town NPCs have been acquired (including the Old Man and Traveling Merchant).||Jungle||Sells paints, painting tools, and paintings.||Paintball Gun
|Golfer||Found and spoken to in Underground Desert||Forest||Sells golf clubs, balls, flags and other golfing accessories.||n/a||Golf Balls|
|Arms Dealer||A player has bullets, or a gun that shoots bullets, in their inventory.||Desert||Sells guns, bullets, and other ammunition.||n/a||Pre-Hardmode:|
|Tavernkeep||Eater of Worlds or Brain of Cthulhu is defeated, and he is found and spoken to.||Hallow||Sells items that summon and help fight the Old One's Army. Most cost Defender Medals, except for Eternia Crystals, the Eternia Crystal Stand, and Ale, which costs ordinary coins.||Ale Tosser
|Stylist||Found and spoken to in a Spider Cave.||Ocean||Can change the player's hair style, and sells Hair Dyes.||Stylish Scissors
|Goblin Tinkerer||Found and spoken to in the cavern layer, after defeating a Goblin Invasion.||Underground||Sells items such as the Tinkerer's Workshop, and can reforge items.||n/a||Spiky Balls|
|Witch Doctor||Queen Bee is defeated.||Jungle||Sells the Blowgun, the Imbuing Station, summoner equipment and Fountains.||n/a||Blowgun|
|Clothier||Skeletron is defeated.||Underground||Sells some vanity items, including the Familiar set.||Red Hat
|Book of Skulls|
(Magic, Shadowflame version)
|Mechanic||Found and spoken to in the Dungeon.||Snow||Sells the Wrench, Wire, and other Mechanism-related items, in addition to the Mechanic's Rod under certain conditions.||Combat Wrench
|Party Girl||1/40 chance of spawning after 14 / 8 other town NPCs (including the Old Man and Traveling Merchant) have been acquired.||Hallow||Sells items that create colorful visual effects. If killed, she does not always respawn the following day as other NPCs do, rather starting over with a random chance of re-spawning each dawn.||Happy Grenade
(30-60, 25% chance)
Town pets[edit | edit source]
Town pets are special NPCs that appear when a pet license item sold by the Zoologist is used. They are not to be confused with pets, which follow the player around. Town pets have distinctive housing assignment banners, and can share Houses with another NPC. They count as NPCs for Pylon requirements and for decreasing enemy spawn rates in an area. They additionally raise the happiness level universally of all nearby NPCs.
|Town Cat||A Cat License is used, and there is no Town Cat in the world already. Purchasing the Cat License from the Zoologist requires 10% Bestiary completion.||Can be petted.|
|Town Dog||A Dog License is used, and there is no Town Dog in the world already. Purchasing the Dog License from the Zoologist requires 25% Bestiary completion.||Can be petted.|
|Town Bunny||A Bunny License is used, and there is no Town Bunny in the world already. Purchasing the Bunny License from the Zoologist requires 45% Bestiary completion.||Can be petted.|
|NPC||Acquired When||Preferred Biome||Description||Drops||Defending Weapon|
|Wizard||Found and spoken to in the Cavern layer in Hardmode.||Hallow||Sells magical items.||n/a||Flower of Fire|
(Magic, inflicts On Fire!)
|Tax Collector||A Tortured Soul is transformed with Purification Powder in the Underworld.||Snow||Collects property taxes from other NPCs. Earns
|Truffle||A house is built in an above-ground Glowing Mushroom biome during Hardmode.||Surface Mushroom||Sells the Autohammer, Mushroom Spear, and other mushroom-themed items.||n/a||Mushroom Spore|
(Magic, stationary until touched)
|Pirate||A Pirate Invasion is defeated.||Ocean||Sells the Cannon and other Pirate-related items.||n/a||Pirate Cannon|
|Steampunker||Once a Mechanical Boss is defeated.||Desert||Sells the Clentaminator, Teleporter, Jetpack, and other items.||Ivy
(100% chance only when named Whitney)
|Clockwork Assault Rifle|
|Cyborg||Plantera is defeated.||Snow||Sells the Proximity Mine Launcher, Rockets and Nanites.||n/a||Rocket|
|Santa Claus||The Frost Legion is defeated, appearing only during the Christmas season.||Snow||Sells the Santa costume, colored lights, Christmas trees and their decorations.||n/a||Bauble|
Other NPCs[edit | edit source]
The following NPCs are not considered town NPCs because they do not move into houses.
|NPC||Acquired When||Description||Drops||Defending Weapon|
|Traveling Merchant||22.12% spawn chance during morning hours (04:30 AM – 12:00 PM) once two other NPCs are present.||Stays until the evening, sells a random selection of unique items each day.||Peddler's Hat
|Old Man||Starting a new world.||Found at the entrance to the Dungeon. Summons Skeletron when spoken to, but only at night. Once Skeletron is defeated, the Old Man moves into town as the Clothier.||n/a||n/a|
|Skeleton Merchant||Rarely found in the Caverns.||Sells Counterweights, Spelunker Glowsticks, Magic Lantern, the Yoyo Glove and some other items, based on the lunar cycle. Some items such as the Slap Hand can only be obtained from him.||n/a||Bone|
Removed NPCs[edit | edit source]
|Mc MoneyPants||Chinese New Year||Was Mobile-exclusive; removed in the Mobile 1.3 update. Had only 1 quote (which is used by the Merchant). Had a "help" button similar to the Guide's, but pressing it would sometimes crash the game.|
Stat Boosts[edit | edit source]
All NPCs have a base defense stat of 15 (except for the Skeleton Merchant, who has 30), and their base attack stats vary from one NPC to another. In addition, all NPCs gain specific defense and damage boosts based on the bosses that have been defeated so far in the current world. These boosts are completely independent of each other (e.g. the "Hardmode entered" boost can potentially be gained without first attaining the "Eye of Cthulhu beaten" boost, and vice-versa). The boosts are also permanent for a given world, and are applied instantly to all Town NPCs, including all Town pets and all Other NPCs.
|Event||Defense Bonus||Attack Boost[stat 1]|
|Eye of Cthulhu beaten||+3||+10%|
|Eater of Worlds / Brain of Cthulhu beaten||+3||+10%|
|Queen Bee beaten||+3||+10%|
|Queen Slime beaten||+14||+30%|
|The Twins beaten||+6||+15%|
|The Destroyer beaten||+6||+15%|
|Skeletron Prime beaten||+6||+15%|
|Lunatic Cultist beaten||+8||+15%|
|Advanced Combat Techniques used||+6||+20%|
- Attack damage bonuses are computed by first adding all applicable damage boosts to obtain a boost factor, then multiplying the NPC's base attack damage by that total factor. Thus, "+10%" and "+15%" and "+40%" combined give an increase of +65%.
Happiness[edit | edit source]
Since the Desktop 1.4 update, NPCs now have individual preferences about other NPCs or the biome they live in which in turn affects their prices. When selecting Happiness in an NPC tooltip, the NPC will tell the player if any factors make it currently happy or unhappy, although it will not say what could make it happier or unhappier. For example, if the Guide is located alone in a Forest, he will praise the lack of other NPCs around and the fact he is in a Forest, but he will not hint at the fact he would prefer to live near the Clothier or Zoologist.
Factors that make an NPC happy will lower its prices for goods purchased from it, down to a minimum of 75%, and increase the value of goods sold to it by the inverse of the same modifier, up to a maximum of 133% (1/0.75). Conversely, factors that make an NPC unhappy will raise its prices purchased from it, up to a maximum of 150%, and decrease the value of goods sold to it, down to a minimum 67% (2/3). Price modifiers are rounded to the nearest 5% increment. When an NPC that sells items, other than the Skeleton Merchant or Traveling Merchant, has a price modifier at or below 85%, they will allow the player to purchase the Pylon for their current biome. The Tax Collector's current tax funds and tax collection limit are both divided by his happiness factor, such that at maximum happiness he will store up to
133333*133333, and at maximum unhappiness he will only store up to 66666*66666; the amount of taxes that he collects per minute also scales at the same rate.
Note that for the purpose of calculating distances below, the position of an NPC's home tile is considered instead of the NPC itself, unless the NPC is homeless in which case its actual position is considered. Similarly, biome-related preferences will reference the primary biome where the player is, rather than where the NPC or its home is. Hybrid biomes are not considered, meaning that biomes are evaluated according to priority, with the highest-priority biome the player is in being chosen as the current biome. The list of biomes, in order of greatest to least priority, is as follows:
- (1) Dungeon → (2) Corruption → (3) Crimson → (4) Glowing Mushroom → (5) Hallow → (6) Jungle → (7) Snow → (8) Ocean → (9) Desert → (10) Underground → (11) Forest
Factors affecting Happiness[edit | edit source]
The below price modifiers are multiplicative, but because of the rounding to 5% increments you can often treat them as additive. Additionally, the price multiplier will always be set to the maximum 150% if the NPC is homeless, more than 120 tiles from their house, or located in the Corruption, Crimson, or Dungeon.
|Two or more other NPCs within 25 tiles (for each additional NPC)||104%|
|No more than one other NPC within 25 tiles and no more than three other NPCs (not counting the NPCs within 25 tiles) within 120 tiles||90%|
|Located in a Loved biome||90%|
|Located in a Liked biome||95%|
|Located in a Disliked biome||105%|
|Located in a Hated biome||110%|
|For each Loved NPC within 25 tiles||90%|
|For each Liked NPC within 25 tiles||95%|
|For each Disliked NPC within 25 tiles||105%|
|For each Hated NPC within 25 tiles||110%|
NPC preferences[edit | edit source]
Notes[edit | edit source]
- All NPCs have a base attack damage stat of 10. On Desktop, their attack stat will increase throughout the game.
- NPCs will not spawn during an active event or at night.
- An NPC takes about 2 minutes to spawn after another NPC has spawned or dawn passes.
- If valid housing is off-screen during spawning, the NPC will spawn directly into its house.
- NPCs will teleport home during the night, rain, or solar eclipses if the NPC and their home are off-screen.
- Unlike chests and structures generated on world creation, bound NPCs spawn around the player's position on-the-fly, similar to enemy spawns. They are temporary, and can respawn elsewhere if missed (see NPC spawning).
- NPCs are known to "visit" other NPCs, talk, and play three rounds of rock–paper–scissors.
- NPCs are able to walk up stairs.
- NPCs can drown in water that is 2 tiles deep, whereas players require 3 tiles of water depth in order to drown.
- NPC vendors who have biome requirements to sell certain items need to be spoken to with the player being in that biome to fulfill the requirement. It is not sufficient to have their home located in the specific biome.
- The Oasis mini-biome counts as a Desert in terms of an NPC's preferred biome.
- The 25 block distance between preferred and unpreferred NPCs is measured from the NPC's housing flag.
Emotes[edit | edit source]
Although it may seem to be random, NPCs "emote" about things depending on their environment.
Achievements[edit | edit source]
Tips[edit | edit source]
- Each time the Traveling Merchant spawns, he will have a random shop inventory. If the player leaves the world between 4:30 AM and 12:00 AM, and enters again, there is a 22% chance he will re-spawn (with a new shop inventory).
- Bound NPCs found underground can be freed by talking to them, after which they will always respawn whenever a vacant house is available. Having an empty room ready for them beforehand will cause them to move in at night as soon as they are off-screen.
- Bound NPCs can be found by listening to their "hurt" sounds, especially the Mechanic, as the Dungeon is teeming with enemies.
- A housing area can be created where all the NPCs can have their biome-specific items: 300 Pink Ice Block, 100 Mushroom grass, and 80 Lihzahrd Brick in one screen where the houses are located.
- Drowning an NPC in water is an easy way to get NPC drops (safer than lava and quicker than Rotten Eggs).
- A vendor NPC alone in a preferred biome is sufficiently happy enough to sell a Pylon. For this reason, it is possible when starting a town in another biome to move that NPC there before any others, buy the pylon when they respawn, then move them back to their original housing if so desired. Note that to use a pylon there must be at least two nearby NPCs, but none of them have to be the same NPC the pylon was purchased from, nor do any have to be happy.
- You can use the Advanced Combat Techniques book, obtained by fishing during a Blood Moon to permanently increase the stats of all NPCs.
- To open a chest behind an NPC, right click twice. The first click will open the NPC's dialogue box. The second click will open the chest.
Trivia[edit | edit source]
- During a Blood Moon, all female NPCs except the Party Girl use more irritable or aggressive dialogue than normal. This is a reference to the fact that some women in real life become irritable or aggressive due to premenstrual syndrome. Both the menstrual cycle and the real-world Moon cycle occur approximately every 28 days.
History[edit | edit source]
- Desktop 220.127.116.11:
- The Truffle now likes living in the Mushroom biome (instead of being neutral).
- Desktop 18.104.22.168:
- Desktop 22.214.171.124:
- Fixed erroneously huge dislike modifiers to happiness.
- Desktop 126.96.36.199:
- Zoologist and Golfer added.
- Now sell Pylons.
- Now have a Happiness system depending on where they live and who they live with.
- NPCs will now drop Tombstones when they die in Hardcore mode.
- Dye Traders requirements changed to only require a Dye item or material to craft a dye item.
- Town NPCs now get a little stronger each time you defeat a boss.
- Desktop 1.3.5: NPCs who are manually assigned to a room will have their successor attempt to move in when the original is killed.
- Desktop 1.3.4:
- Tavernkeep added.
- Added 4 new emotes: Tavernkeep, Old One's Army, Beer, and Defender Medal.
- Beer and Defender Medal are unused, but appear in the game files.
- Desktop 1.3.2:
- Party event added.
- NPCs now try to avoid falling into cliffs away from their home area.
- Added 4 new emotes: Party Present, Party Hat, Party Cake, and Party Balloons.
- Desktop 188.8.131.52:
- 2 new NPCs added: Skeleton Merchant and Tax Collector.
- Improved the sprites of some NPCs.
- NPCs now avoid enemies and fight back if necessary.
- NPCs now talk to each other, sit in chairs, and avoid blocking chests.
- Having all possible NPCs living in your world now unlocks the Real Estate Agent achievement.
- Changed the spawn order for Town NPCs so that the more important ones spawn first.
- NPCs can now drown in water.
- Desktop 1.2.4:
- Added the Angler NPC.
- Fixed bugs with the sign / NPC chat display again.
- Fixed exploit where you could buy and sell stackable items for profit.
- Desktop 184.108.40.206: Fixed problems with rescued NPCs not having any names.
- Desktop 1.2.3:
- 2 new NPCs added: Stylist and Traveling Merchant.
- Names are now decided on spawn rather than World Creation.
- Fixed a bug where numerous NPCs could spawn if you beat a hardmode boss in a non-hardmode world.
- Invasions can now spawn enemies anywhere near friendly NPCs instead of just the middle of the world.
- Enemy attacks no longer trigger Spectre set healing from hitting friendly NPCs.
- Desktop 220.127.116.11: Added some checks to ensure multiple NPCs of the same type don’t spawn.
- Desktop 1.2.1: Several friendly NPCs will sell costumes.
- Desktop 18.104.22.168:
- Desktop 1.2:
- Desktop 1.1:
- 3 new NPCs added: Goblin Tinkerer, Mechanic and Wizard.
- NPCs now have random names given to them on World Creation. Their deaths will be reported with these names. Also other NPCs will use them in their quotes. Upon respawning after Death will be given a new random name.
- NPCs now may be told where to live using the new Housing Menu feature.
- Two NPCs of the same type can no longer spawn, even in a multiplayer world. (Previously that was two additional merchants and second nurse. They had multiplayer conditions.)
- Desktop 22.214.171.124: NPCs now look at the character.
- Desktop 1.0.6:
- Shops now sell items back to you. Shift-clicking items will automatically sell them.
- New sound for initiating a conversation to an NPC.
- Desktop 1.0.4: Added an option that will pause the game while talking to an NPC in single player. It defaults to off.
- Desktop-Release: Introduced.
- Console 1.19: NPCs who are manually assigned to a room will now have their successor attempt to move in when the original is killed.
- Console 1.17: Made changes from Desktop 1.3.2 to 1.3.4.
- Console-Release: Introduced.
- Switch 1.0.1096.2: Made changes from Desktop 1.3.2 to 1.3.5.
- Switch 1.0.711.6: Introduced.
- Mobile-Release: Introduced.
- 3DS-Release: Introduced.
References[edit | edit source]
- In video game development lingo, the term "NPC" technically includes any character not controlled by a player, including enemies. However, Terraria, along with its developers and fan community, generally use the term "NPC" to refer only to friendly automated characters that provide a service to players. This page is therefore only about those friendly NPCs.
- Information taken from the Desktop 126.96.36.199 source code, method
. Note that tax amounts are converted to a floating-point number, then divided by the current happiness price adjustment, then truncated to an integer; hence, e.g.
100000*10 divided by a 150% price modifier gives 66666*66666 due to the truncation.
- Information taken from the Desktop 188.8.131.52 source code, method
- The Dungeon, Corruption, and Crimson biomes always maximize Town NPCs' unhappiness. Information taken from the Desktop 184.108.40.206 source code, method
- Information taken from the Desktop 220.127.116.11 source code, method