Changes

Update notes
Line 2: Line 2:  
Rude NPCs have different dialogs than non-rude NPCs.  This template uses data from <code>Data/NPCDispositions.xnb</code> to determine whether the NPC is rude or not.  It also pulls birthdays from the same file.
 
Rude NPCs have different dialogs than non-rude NPCs.  This template uses data from <code>Data/NPCDispositions.xnb</code> to determine whether the NPC is rude or not.  It also pulls birthdays from the same file.
   −
<span style="text-decoration: line-through;">As of v1.11, quotes are pulled from the game code; they are hard-coded in this template as they are in the game code.</span>  Quotes are taken from <code>Content\Strings\StringsFromCSFiles.xnb</code> as of v1.2.
+
Quotes are taken from <code>Content\Strings\StringsFromCSFiles.xnb</code> as of v1.2.
 +
*Specifically, <tt>NPC.cs.4274</tt> through <tt>NPC.cs.4281</tt> contain all birthday gift responses. 
 +
*Where one of these entries contains two quotes (separated by a slash), the first applies to gifts given to males and the second applies to gifts given to females.
    
When used on an NPC's page, the template uses the pagename to determine if the NPC is rude, male or female, and fills in the birthdate automatically.
 
When used on an NPC's page, the template uses the pagename to determine if the NPC is rude, male or female, and fills in the birthdate automatically.
Line 8: Line 10:  
For this page, the default disposition (''i.e.,'' not rude) and default pronoun ("their") are used.  The birthdate for Template:GiftHeader is nonexistent, so the default "Seasons 00" is used.
 
For this page, the default disposition (''i.e.,'' not rude) and default pronoun ("their") are used.  The birthdate for Template:GiftHeader is nonexistent, so the default "Seasons 00" is used.
   −
There is some extra text when used on the Dwarf's page (Dwarvish translations, and a note about how friendship isn't changed by gifting until the player understands Dwarvish).
+
There is some extra text when used on the Dwarf's page (Dwarvish translations, and a note about how friendship isn't changed by gifting until the player understands Dwarvish)
 +
*Dwarvish quotes cannot be found in data files.  They can be otbained from screenshots and/or from creating a program to execute the dwarvish translation code found in the game executable.
 +
**Since there is a bug preventing the Dwarf from giving the neutral response to gifts, the neutral Dwarvish quote may be extremely difficult to find/translate.
    
==Usage==
 
==Usage==
107,345

edits