Changes

54 bytes added ,  18:33, 19 February 2021
m
Replace deprecated <source> tags with <syntaxhighlight> tags
Line 12: Line 12:     
The file has one row per NPC like this:
 
The file has one row per NPC like this:
<source lang="yaml">
+
<syntaxhighlight lang="yaml">
 
   Abigail: "teen/rude/outgoing/neutral/female/datable/Sebastian/Town/fall 13/Caroline 'mom' Pierre 'dad'/SeedShop 1 9/Abigail"
 
   Abigail: "teen/rude/outgoing/neutral/female/datable/Sebastian/Town/fall 13/Caroline 'mom' Pierre 'dad'/SeedShop 1 9/Abigail"
</source>
+
</syntaxhighlight>
    
The key (before the colon) is the internal name which uniquely identifies that NPC. This name isn't shown to the player, but will be used when referencing the NPC in other files. The value contains the following fields:
 
The key (before the colon) is the internal name which uniquely identifies that NPC. This name isn't shown to the player, but will be used when referencing the NPC in other files. The value contains the following fields:
Line 90: Line 90:     
The file has one row per NPC like this:
 
The file has one row per NPC like this:
<source lang="yaml">
+
<syntaxhighlight lang="yaml">
 
   Abigail: "I seriously love this! You're the best, @!/66 128 220 226 276 611/Hey, how'd you know I was hungry? This looks delicious!//What am I supposed to do with this?/-5 -75 -79 16 245 246/What were you thinking? This is awful!/330/You brought me a present? Thanks.// " #!String
 
   Abigail: "I seriously love this! You're the best, @!/66 128 220 226 276 611/Hey, how'd you know I was hungry? This looks delicious!//What am I supposed to do with this?/-5 -75 -79 16 245 246/What were you thinking? This is awful!/330/You brought me a present? Thanks.// " #!String
</source>
+
</syntaxhighlight>
    
The line can be broken down into 5 pairs of dialogue + item IDs in this order: Love, Like, Neutral, Dislike, Hate. If a dialogue field is empty, the game will use a generic dialogue text. See [[Modding:Object data]] for the item IDs.
 
The line can be broken down into 5 pairs of dialogue + item IDs in this order: Love, Like, Neutral, Dislike, Hate. If a dialogue field is empty, the game will use a generic dialogue text. See [[Modding:Object data]] for the item IDs.
Line 230: Line 230:  
</li>
 
</li>
 
<li>Edit the <tt>content.json</tt> to load the files:
 
<li>Edit the <tt>content.json</tt> to load the files:
<source lang="json">
+
<syntaxhighlight lang="json">
 
{
 
{
 
   "Format": "1.5",
 
   "Format": "1.5",
Line 291: Line 291:  
   ]
 
   ]
 
}
 
}
</source>
+
</syntaxhighlight>
 
</li>
 
</li>
 
</ol>
 
</ol>
114

edits