Line 7: |
Line 7: |
| NPC gift tastes are stored in <tt>Content\Data\NPCGiftTastes.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked to edit]]. Here's the raw data as of {{version|1.5.1}} for reference: | | NPC gift tastes are stored in <tt>Content\Data\NPCGiftTastes.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked to edit]]. 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"> |
| { | | { |
| "Universal_Love": "74 446 797 373 279", | | "Universal_Love": "74 446 797 373 279", |
Line 49: |
Line 49: |
| "Leo": "I love this. I'm going to put it in my nest./444 289 834 906/Are you sure? This is so nice.../852 396 392 394 397/Oh... I don't know if I can digest this.../-7 -81 2 330 303 459 342 346 348/*sniff* *sniff*... Why are you giving this to me? Do you want me to bury it for you?/257 253 247 271 283 304 303 346 873 348 459 167/I accept your gift./-4/" | | "Leo": "I love this. I'm going to put it in my nest./444 289 834 906/Are you sure? This is so nice.../852 396 392 394 397/Oh... I don't know if I can digest this.../-7 -81 2 330 303 459 342 346 348/*sniff* *sniff*... Why are you giving this to me? Do you want me to bury it for you?/257 253 247 271 283 304 303 346 873 348 459 167/I accept your gift./-4/" |
| } | | } |
− | </source>}} | + | </syntaxhighlight>}} |
| | | |
| ===Format=== | | ===Format=== |
Line 57: |
Line 57: |
| <li>''Universal tastes'' apply to all villagers. Their key is <tt>Universal_''Taste''</tt>, and their value is a space-delimited array of reference IDs ([[Modding:Object data|item ID]] if ≥0, category ID if <0). For example, consider this entry: | | <li>''Universal tastes'' apply to all villagers. Their key is <tt>Universal_''Taste''</tt>, and their value is a space-delimited array of reference IDs ([[Modding:Object data|item ID]] if ≥0, category ID if <0). For example, consider this entry: |
| | | |
− | <source lang="json"> | + | <syntaxhighlight lang="json"> |
| "Universal_Like": "-2 -7 -26 -75 -80 72 395 613 634 635 636 637 638 724 459" | | "Universal_Like": "-2 -7 -26 -75 -80 72 395 613 634 635 636 637 638 724 459" |
− | </source> | + | </syntaxhighlight> |
| | | |
| This data means villagers should have a universal like for category -2, [[Modding:Object data|item 72]], etc.</li> | | This data means villagers should have a universal like for category -2, [[Modding:Object data|item 72]], etc.</li> |
Line 65: |
Line 65: |
| <li>''Personal tastes'' apply to a specific villager. Their key is the villager's internal name (like <tt>Abigail</tt>), and their value alternates dialogue text with a list of reference IDs in this order: love, like, dislike, hate, and neutral. For example, consider Abigail's gift tastes: | | <li>''Personal tastes'' apply to a specific villager. Their key is the villager's internal name (like <tt>Abigail</tt>), and their value alternates dialogue text with a list of reference IDs in this order: love, like, dislike, hate, and neutral. For example, consider Abigail's gift tastes: |
| | | |
− | <source lang="json"> | + | <syntaxhighlight lang="json"> |
| "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.// " | | "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.// " |
− | </source> | + | </syntaxhighlight> |
| | | |
| By splitting the string with <tt>/</tt> as the delimiter, we can extract this data: | | By splitting the string with <tt>/</tt> as the delimiter, we can extract this data: |