Changes

Jump to navigation Jump to search
36 bytes added ,  17:29, 19 February 2021
m
Replace deprecated <source> tags with <syntaxhighlight> tags
Line 6: Line 6:  
Object data is stored in <tt>Content\Data\Mail.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}} for reference:
 
Object data is stored in <tt>Content\Data\Mail.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}} for reference:
   −
{{collapse|Data|content=<source lang="json">
+
{{collapse|Data|content=<syntaxhighlight lang="json">
 
{
 
{
 
   "Robin": "Hey there!^I had some extra wood lying around... I thought maybe you could use it. Take care!  ^  -Robin %item object 388 50 %%[#]A Gift From Robin",
 
   "Robin": "Hey there!^I had some extra wood lying around... I thought maybe you could use it. Take care!  ^  -Robin %item object 388 50 %%[#]A Gift From Robin",
Line 187: Line 187:  
   "LeoCooking": "@,^Here's a food from my home, that me and my family enjoy. Hope you like it. ^^  -Leo^^P.S. Willy helped me write this.%item cookingRecipe %%[#]Leo's Recipe"
 
   "LeoCooking": "@,^Here's a food from my home, that me and my family enjoy. Hope you like it. ^^  -Leo^^P.S. Willy helped me write this.%item cookingRecipe %%[#]Leo's Recipe"
 
}
 
}
</source>}}
+
</syntaxhighlight>}}
    
==Format==
 
==Format==
 
===Key===
 
===Key===
 
Each mail entry has a unique key which identifies the message (e.g. to track whether the player already received it). For example, <tt>Robin</tt> at the start of this entry is the mail key:
 
Each mail entry has a unique key which identifies the message (e.g. to track whether the player already received it). For example, <tt>Robin</tt> at the start of this entry is the mail key:
<source lang="json">
+
<syntaxhighlight lang="json">
 
"Robin": "Hey there!^I had some extra wood lying around... I thought maybe you could use it. Take care!  ^  -Robin %item object 388 50 %%[#]A Gift From Robin"
 
"Robin": "Hey there!^I had some extra wood lying around... I thought maybe you could use it. Take care!  ^  -Robin %item object 388 50 %%[#]A Gift From Robin"
</source>
+
</syntaxhighlight>
    
The key can be one of these formats:
 
The key can be one of these formats:
114

edits

Navigation menu