logo
en
English

Anti-Social NPCs

Creator: ubererdferkel
Updated:01/07/2022 23:59:23
10KB
mcafee
Authentification
Trusted by 200,000,000+ Users

Pre-required Mods

will be automatically installed when you use Anti-Social NPCs

About this Mod

Allows modders to create NPCs that the player can't befriend.
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

Note on SDV 1.6
The upcoming (as of 3/23) version 1.6 of Stardew Valley will have native support for non-social NPCs. Therefore, this mod will be obsolete and unnecessary. If you're a mod author making use of this mod, you can read about the planned features on the SDV wiki,here.

Instructions for Modders
  • Create a new NPC as your normally would (e.g. usingContent Patcher)
  • Do not add the NPC to "Data/NPCGiftTastes"
  • Add the NPC to "Data/AntiSocialNPCs". The key is the NPC's name, and the value can be anything (e.g., "true").
  • 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.

Top Mods for Stardew Valley

Explore the best mods for Stardew Valley that bring new features, upgraded visuals, and exciting ways to transform your gameplay experience.

Unlock the full potential of Stardew Valley with XMODhub—explore these top mods today!

mcafee
Authentification
Trusted by 200,000,000+ Users

Need help with download or installation? Join our Discord community for support.

logo
Language

Gaming solutions

Resources

Partners

Follow us on

discordfacebooktwitteryoutube
Contact Support:
support@xmodhub.com
Xmod_Lily
Business Inquiries:
dc@xmodhub.com or cathy@business.xmodhub.com
catherine_79237

Larvas Limited

Room 1201, 12/F Tai Sang Bank Building 130-132 Des Voeux Road Central HK