Changes

→‎Adding your NPC: update, standardize indentation, remove LogName (not needed for simple content packs)
Line 221: Line 221:     
<ol>
 
<ol>
<li>[https://github.com/Pathoschild/StardewMods/tree/develop/ContentPatcher#create-a-content-pack Create an empty Content Patcher content pack]. By convention, we'll name the folder <tt>[CP] Dobson</tt>.</li>
+
<li>[https://github.com/Pathoschild/StardewMods/blob/develop/ContentPatcher/docs/author-guide.md#format Create an empty Content Patcher content pack]. By convention, we'll name the folder <tt>[CP] Dobson</tt>.</li>
 
<li>Create the following files:
 
<li>Create the following files:
 
* <tt>assets/dialogue.json</tt> containing the dialogue.
 
* <tt>assets/dialogue.json</tt> containing the dialogue.
Line 232: Line 232:  
<syntaxhighlight lang="json">
 
<syntaxhighlight lang="json">
 
{
 
{
  "Format": "1.5",
+
    "Format": "1.21",
  "Changes": [
+
    "Changes": [
    {
+
        {
      "LogName": "Sprites",
+
            "Action": "Load",
      "Action": "Load",
+
            "Target": "Characters/Dobson",
      "Target": "Characters/Dobson",
+
            "FromFile": "assets/sprites.png",
      "FromFile": "assets/sprites.png",
+
        },
    },
+
        {
    {
+
            "Action": "Load",
      "LogName": "Portraits",
+
            "Target": "Portraits/Dobson",
      "Action": "Load",
+
            "FromFile": "assets/portraits.png",
      "Target": "Portraits/Dobson",
+
        },
      "FromFile": "assets/portraits.png",
+
        {
    },
+
            "Action": "Load",
    {
+
            "Target": "Characters/Dialogue/Dobson",
      "LogName": "Dialogue",
+
            "FromFile": "assets/dialogue.json",
      "Action": "Load",
+
        },
      "Target": "Characters/Dialogue/Dobson",
+
        {
      "FromFile": "assets/dialogue.json",
+
            "Action": "Load",
    },
+
            "Target": "Characters/Dialogue/MarriageDialogueDobson",
    {
+
            "FromFile": "assets/marriageDialogue.json",
      "LogName": "Marriage Dialogue",
+
        },
      "Action": "Load",
+
        {
      "Target": "Characters/Dialogue/MarriageDialogueDobson",
+
            "Action": "Load",
      "FromFile": "assets/marriageDialogue.json",
+
            "Target": "Characters/schedules/Dobson",
    },
+
            "FromFile": "assets/schedule.json",
    {
+
        },
      "LogName": "Schedule",
+
        {
      "Action": "Load",
+
            "Action": "EditData",
      "Target": "Characters/schedules/Dobson",
+
            "Target": "Data/NPCDispositions",
      "FromFile": "assets/schedule.json",
+
            "Entries": {
    },
+
                "Dobson": "adult/rude/neutral/positive/male/datable//Town/summer 7//BusStop 19 4/Dobson"
    {
+
            },
      "LogName": "NPC Dispositions",
+
        },
      "Action": "EditData",
+
        {
      "Target": "Data/NPCDispositions",
+
            "Action": "EditData",
      "Entries": {
+
            "Target": "Data/NPCGiftTastes",
        "Dobson": "adult/rude/neutral/positive/male/datable//Town/summer 7//BusStop 19 4/Dobson"
+
            "Entries": {
      },
+
                "Dobson": "You're giving this to me? This is amazing!/207 232 233 400/Thank you! This is a very interesting specimen./-5 -79 422/...What is this?/80 330/This is disgusting./2/That was very thoughtful of you./-4/ ",
    },
+
            },
    {
+
        },
      "LogName": "Gift tastes",
+
        {
      "Action": "EditData",
+
            "Action": "EditData",
      "Target": "Data/NPCGiftTastes",
+
            "Target": "Data/EngagementDialogue",
      "Entries": {
+
            "Entries": {
        "Dobson": "You're giving this to me? This is amazing!/207 232 233 400/Thank you! This is a very interesting specimen./-5 -79 422/...What is this?/80 330/This is disgusting./2/That was very thoughtful of you./-4/ ",
+
                "Dobson0": "I can't believe I am about to be married!$h",
      },
+
                "Dobson1": "I hope I don't get cold feet",
    },
+
            },
    {
+
        },
      "LogName": "Engagement Dialogue",
+
    ]
      "Action": "EditData",
  −
      "Target": "Data/EngagementDialogue",
  −
      "Entries": {
  −
        "Dobson0": "I can't believe I am about to be married!$h",
  −
        "Dobson1": "I hope I don't get cold feet",
  −
        },
  −
    },
  −
  ]
   
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
translators
8,404

edits