These are the settings that make an NPC feel like part of the town. They are all optional, they go in the main NPC file, and an NPC without them behaves as before. A pack that uses any of them must require NPC Helper 2.6.0 in manifest.json.
[Social]
CanSocialize = true # false: a background character
LoveInterest = "Harvey" # shown in the profile
CanVisitIsland = true # the island resort
ItemDeliveryQuests = true # may ask the player for items
WinterStar = true # takes part in the Winter Star gift exchange
Unlock = ["day 5"] # when the NPC first appears (see Unlock rules)
DumpsterDiveFriendship = -25 # friendship lost when found in the trash
DumpsterDiveEmote = "angry"
FormerNames = ["Miri"] # earlier names, so old saves find the NPC
[Relatives]
Penny = "sister"
Harvey = "boss"
[Look]
Breathes = true
Shadow = true
Size = "16x32"
MugShot = "x=0 y=0 w=64 h=64"
ShakePortraits = [5, 6]
EmoteOffset = "x=0 y=-8"
[CustomFields]
Mood = "cheery"
[Social]#
| Key | Default | Meaning |
|---|---|---|
CanSocialize |
true |
false makes a background character: the player cannot talk to or befriend them. |
LoveInterest |
none | The name of the NPC they are in love with. |
CanVisitIsland |
not set: the game decides | Whether they visit the island resort. |
ItemDeliveryQuests |
not set: the game decides | Whether they ask the player for items in quests. |
WinterStar |
not set: the game decides | Whether they join the Winter Star gift exchange. The game says yes for Region = "Town". |
Unlock |
none: there from the start | When the NPC first appears. See Unlock rules. |
DumpsterDiveFriendship |
not set: the game decides | Friendship lost when the player finds them in the trash. Write a negative number; a positive one is turned round with a warning. |
DumpsterDiveEmote |
not set | The emote they show: angry, sad, heart and the other event emotes, or the emote's number. |
FormerNames |
none | Names the NPC had before, so saves that used them still find the NPC. |
A key you leave out stays unset, and the game's own default applies. Writing true or false sets it explicitly.
[Relatives]#
Each key is the name of another NPC, and the text is how they are related. It is shown in the profile's friends and family list.
[Relatives]
Penny = "sister"
A name must be a valid NPC name. A line for the NPC itself, or one with no text, is skipped with a warning. A language folder can translate the labels: put the same [Relatives] table in locale/<code>/<Name>.toml. See Localization.
[Look]#
| Key | Default | Meaning |
|---|---|---|
Breathes |
true |
Whether the sprite breathes while standing still. |
Shadow |
true |
Whether a shadow is drawn under the NPC. |
Size |
16x32 |
One sprite frame in pixels, as 16x32 or w=16 h=32. Change it only when the sprite sheet really uses another frame size. |
MugShot |
the game's choice | The part of the portrait sheet used in the social tab and on the calendar, as x=0 y=0 w=64 h=64. |
ShakePortraits |
none | The portrait numbers whose face shakes, for an angry or shivering look. |
EmoteOffset |
x=0 y=0 |
Moves the emote bubble, for a tall or short sprite. Negative numbers are allowed. |
An area, a point and a size are written in words, in any order, or as plain numbers: x=0 y=0 w=64 h=64, 0 0 64 64, x=0 y=-8, 16x32. See TOML syntax.
[CustomFields]#
Free key and value pairs that other mods can read from the NPC's character data. Values are text. A key with a dot must be quoted: "Mod.Key" = "1".
In the SDK#
new NpcBuilder("Rei")
.CanSocialize(true).LoveInterest("Harvey").CanVisitIsland(false)
.HasItemDeliveryQuests(false).TakesPartInWinterStar(true)
.Relative("Penny", "sister")
.DumpsterDive(-25, "angry").FormerNames("Miri").CustomField("Mood", "cheery")
.Breathes(true).CastsShadow(true).SpriteSize(16, 32)
.MugShot(0, 0, 64, 64).ShakesPortraits(5, 6).EmoteOffset(0, -8);
See the C# SDK.