Linha 8: |
Linha 8: |
| Os gostos de presentes do NPC são armazenados em <tt>Content\Data\NPCGiftTastes.xnb</tt>, que pode ser [[Modding:Editing XNB files#unpacking|descompactado em um arquivo de texto.]]. Here's the raw data as of {{version|1.3.33}} for reference: | | Os gostos de presentes do NPC são armazenados em <tt>Content\Data\NPCGiftTastes.xnb</tt>, que pode ser [[Modding:Editing XNB files#unpacking|descompactado em um arquivo de texto.]]. Here's the raw data as of {{version|1.3.33}} for reference: |
| | | |
− | <source lang="json"> | + | <syntaxhighlight lang="json"> |
| { | | { |
| "Universal_Love": "74 446 797 373", | | "Universal_Love": "74 446 797 373", |
Linha 49: |
Linha 49: |
| "Krobus": "This is an amazing gift. For my people it is a great honor to receive something like this./72 16 276 337 305 308/Thank you very much./66 336 340/Humans have... interesting tastes./-7 -81 2 330/Oh... Um. I guess I'll accept it.//Thank you.// " | | "Krobus": "This is an amazing gift. For my people it is a great honor to receive something like this./72 16 276 337 305 308/Thank you very much./66 336 340/Humans have... interesting tastes./-7 -81 2 330/Oh... Um. I guess I'll accept it.//Thank you.// " |
| } | | } |
− | </source> | + | </syntaxhighlight> |
| | | |
| ===Format=== | | ===Format=== |
Linha 57: |
Linha 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 (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 (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, item 72, etc.</li> | | This data means villagers should have a universal like for category -2, item 72, etc.</li> |
Linha 65: |
Linha 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: |