Stardew Valley
Help us shape the future of the Vortex mod manager by taking our survey
0 of 0

File information

Last updated

Original upload

Created by

Super Aardvark

Uploaded by

ubererdferkel

Virus scan

Safe to use

Tags for this mod

About this mod

Allows modders to create NPCs that the player can't befriend.

Requirements
Permissions and credits
Changelogs
Donations
This mod allows the creation of new NPCs that aren't friends with the player. They can have a schedule, a portrait, dialog... almost everything a normal villager NPC has. However, they won't show up on the Social menu and the player can't give them gifts.

This mod does nothing on its own. It is a resource for mod makers and content pack creators.

Install
  1. Install the latest version of SMAPI.
  2. Download this mod and unzip it into Stardew Valley/Mods.
  3. Run the game using SMAPI.

Instructions for Modders
  1. Create a new NPC as your normally would (e.g. using Content Patcher)
  2. Do not add the NPC to "Data/NPCGiftTastes"
  3. Add the NPC to "Data/AntiSocialNPCs".  The key is the NPC's name, and the value can be anything (e.g., "true").
  4. Add this mod to your mod's dependencies.

Sample Content Patcher Snippet
If you're using Content Patcher to make a new NPC named Bob, here's what you would add to the Changes section of your content.json file:

{
   "LogName": "Bob's AntiSocial Flag",
   "Action": "EditData",
   "Target": "Data/AntiSocialNPCs",
   "Entries": {
      "Bob": true
   }
}

Advanced Use
It should be possible to cause an NPC to become friendly with proper use of "When" conditionals in Content Patcher.  If you add "Data/NPCGiftTastes" for your NPC, they will appear on the Social menu the next time the player talks to them.  Removing the NPC from "Data/AntiSocialNPCs" will cause them to appear in the Social menu immediately.  This functionality is not well tested.

Limitations
  • Non-social NPCs cannot use "event" type dialog. The most common event of this type is "Introduction", which causes NPCs to say something special to the player if they meet in the first six days of the game.  Dialog that requires a certain Heart Level will also not be used, for obvious reasons. 
  • Use of anti-social NPCs in events is untested, but probably works just fine.
  • Anti-social NPCs accepting quest turn-ins is untested (let me know if it works!).

Compatibility
  • Tested with SMAPI 3.2 (Stardew Valley 1.4)
  • Tested with Content Patcher 1.12.0 (optional)
  • Compatible with any mod or content framework that uses SMAPI to edit assets.