promotional bannermobile promotional banner

Custom Fixed Dialogue

Allows content patcher mods to create customized versions of ExtraDialogue and some StringsFromCSFiles strings
After downloading Mister Ginger, I saw that the game tries to make him use hoomen speech because the response to dumpster diving is hardcoded for all adult NPCs. This mod unhardcodes such strings, letting you create versions specific to a certain NPC, so that when they are the one saying the dialogue, it displays a custom version in your content pack instead.


Usage

To create a Content Patcher pack that works with this mod, you first need to know the keys (i.e. the labels) for the strings (i.e. the text) you want to change. For a list of keys that this mod can change, please see this article.

Once you've found the text you want to create a custom version of for a specific NPC, you can add the key for it to your NPC's dialogue file, following these rules:


    For string keys from Characters.json, add "[b]Characters_"[/b] to the beginning. I.e. "WipedMemory" becomes "Characters_WipedMemory".
    For string keys from ExtraDialogue.json, add "ExtraDialogue_" to the beginning. I.e. "Town_DumpsterDiveComment_Adult" becomes "ExtraDialogue_Town_DumpsterDiveComment_Adult".
    For string keys from Strings\StringsFromCSFiles.json just use the exact key from the file. E.g. "NPC.cs.4420" or "Event.cs.1503".

Once you have the proper key, you can use Content Patcher to create a custom version for a specific NPC as though it were an ordinary dialogue string from Characters\Dialogue\<YourNPC>. For example, the string in the screenshot above requires a content patcher mod with a content.json patch like:

{
<br />    "Changes": [
<br />        {
<br />            "Action": "EditData",
<br />            "Target": "Characters/Dialogue/MisterGinger",
<br />            "Entries": {
<br />                "ExtraDialogue_Town_DumpsterDiveComment_Adult": "Mr. Ginger thinks you should stop rooting around in HIS trash bins.$s",
<br />            }
<br />        }
<br />    ]    
<br />}
<br />
<br />
If the text is used for an NPC without a custom version, it simply reverts to using the default generic string.

Because the mod expects all these strings to be used solely for NPC dialogue, it replaces text with an identifier tag. If a string is used outside of character dialogue, you might accidentally see a tag instead of text. Let me know if you see anything strange and I can patch it.


Technical

Requires SMAPI, uses Harmony.

Code is at https://github.com/aedenthorn/StardewValleyMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.

A list of all my mods for Stardew Valley is available at https://www.nexusmods.com/stardewvalley/articles/895.

The Custom Fixed Dialogue Team

profile avatar
Owner
  • 26
    Followers
  • 292
    Projects
  • 5.2M
    Downloads

More from ErintheView all

  • Advanced Character Customization Menu project image

    Advanced Character Customization Menu

    • 43
    • Mods

    Lets you select your character's skin, hair, clothing, and accessory using visual previews.

    • 43
    • June 17, 2026
    • Mods
  • Quality Condensing project image

    Quality Condensing

    • 13
    • Mods

    Lets you condense multiple lower quality produce items to create a single higher quality item.

    • 13
    • June 17, 2026
    • Mods
  • Clocks project image

    Clocks

    • 14
    • Mods

    Makes the wall clock actually tell time, lets you turn any furniture into a clock, and even fixes the Gold Clock and Community Center clock.

    • 14
    • June 16, 2026
    • Mods
  • Fancy Doors project image

    Fancy Doors

    • 16
    • Mods

    Adds all six decorative doors as working door furniture that can be opened, closed, painted and optionally locked.

    • 16
    • June 12, 2026
    • Mods
  • Advanced Character Customization Menu project image

    Advanced Character Customization Menu

    • 43
    • Mods

    Lets you select your character's skin, hair, clothing, and accessory using visual previews.

    • 43
    • June 17, 2026
    • Mods
  • Quality Condensing project image

    Quality Condensing

    • 13
    • Mods

    Lets you condense multiple lower quality produce items to create a single higher quality item.

    • 13
    • June 17, 2026
    • Mods
  • Clocks project image

    Clocks

    • 14
    • Mods

    Makes the wall clock actually tell time, lets you turn any furniture into a clock, and even fixes the Gold Clock and Community Center clock.

    • 14
    • June 16, 2026
    • Mods
  • Fancy Doors project image

    Fancy Doors

    • 16
    • Mods

    Adds all six decorative doors as working door furniture that can be opened, closed, painted and optionally locked.

    • 16
    • June 12, 2026
    • Mods