Difference between revisions of "Template:GiftHeader"

From Stardew Valley Wiki
Jump to navigation Jump to search
(still testing)
(still testing)
Line 1: Line 1:
<noinclude>{{#arraydefine:rude|Abigail,Clint,George,Haley,Alex,Pam,Sebastian,Shane,Wizard|,}}
+
<includeonly>{{#arraydefine:rude|Abigail,Clint,George,Haley,Alex,Pam,Sebastian,Shane,Wizard|,}}
 
{{#arraydefine:female|Abigail,Emily,Haley,Leah,Maru,Penny,Caroline,Evelyn,Jas,Jodi,Marnie,Pam,Robin,Sandy|,}}
 
{{#arraydefine:female|Abigail,Emily,Haley,Leah,Maru,Penny,Caroline,Evelyn,Jas,Jodi,Marnie,Pam,Robin,Sandy|,}}
{{#arraydefine:male|Alex,Elliott,Harvey,Sam,Sebastian,Shane,Clint,Demetrius,Dwarf,George,Gus,Kent,Krobus,Lewis,Linus,Pierre,Vincent,Willy,Wizard|,}}</noinclude>
+
{{#arraydefine:male|Alex,Elliott,Harvey,Sam,Sebastian,Shane,Clint,Demetrius,Dwarf,George,Gus,Kent,Krobus,Lewis,Linus,Pierre,Vincent,Willy,Wizard|,}}
 
<includeonly>{{main article|Friendship#Gifts}}
 
<includeonly>{{main article|Friendship#Gifts}}
 
You can give {{#switch: {{PAGENAME}} | Dwarf = the {{PAGENAME}} | #default = {{PAGENAME}}}} up to two gifts per week (plus one on  
 
You can give {{#switch: {{PAGENAME}} | Dwarf = the {{PAGENAME}} | #default = {{PAGENAME}}}} up to two gifts per week (plus one on  
 
{{#if: {{#arraysearch:female|{{PAGENAME}}|0}} | her  
 
{{#if: {{#arraysearch:female|{{PAGENAME}}|0}} | her  
| {{#if: {{#arraysearch:male|{{PAGENAME}}|0}} | his | their }}
+
| {{#if: {{#arraysearch:male|{{PAGENAME}}|0}} | his  
 +
| their  
 +
}}
 
}}
 
}}
 
birthday), which will raise or lower  
 
birthday), which will raise or lower  
 
{{#if: {{#arraysearch:female|{{PAGENAME}}|0}} | her  
 
{{#if: {{#arraysearch:female|{{PAGENAME}}|0}} | her  
| {{#if: {{#arraysearch:male|{{PAGENAME}}|0}} | his | their }}
+
| {{#if: {{#arraysearch:male|{{PAGENAME}}|0}} | his  
 +
| their  
 +
}}
 
}}
 
}}
 
[[friendship]] with you.  {{#switch: {{PAGENAME}}
 
[[friendship]] with you.  {{#switch: {{PAGENAME}}
Line 16: Line 20:
 
}} Gifts on  
 
}} Gifts on  
 
{{#if: {{#arraysearch:female|{{PAGENAME}}|0}} | her  
 
{{#if: {{#arraysearch:female|{{PAGENAME}}|0}} | her  
| {{#if: {{#arraysearch:male|{{PAGENAME}}|0}} | his | their }}
+
| {{#if: {{#arraysearch:male|{{PAGENAME}}|0}} | his  
 +
| their  
 +
}}
 
}}
 
}}
 
birthday ([[{{{birthday season}}}#Events|{{{birthday season}}} {{{birthday day}}}]]) will have 8&times; effect and show a unique dialogue.<br />For loved or liked gifts, {{#switch: {{PAGENAME}} | Dwarf = the {{PAGENAME}} | #default = {{PAGENAME}}}}  will say  
 
birthday ([[{{{birthday season}}}#Events|{{{birthday season}}} {{{birthday day}}}]]) will have 8&times; effect and show a unique dialogue.<br />For loved or liked gifts, {{#switch: {{PAGENAME}} | Dwarf = the {{PAGENAME}} | #default = {{PAGENAME}}}}  will say  

Revision as of 02:55, 26 January 2017

Description

This template displays a heading for the "Gifts" section on giftable villager pages, which summarizes birthday gifting. Villagers classified as "rude" display different dialogues from "polite" or "neutral" villagers when given a birthday gift. In some languages, dialogue also varies by gender.

Data is taken from Data/NPCDispositions.xnb to determine gender, demeanor (rude or polite), birth season, and birth day.

Quotes are taken from Content\Strings\StringsFromCSFiles.xnb.

  • Specifically, NPC.cs.4274 through NPC.cs.4281 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.

There is some extra text when used on the Dwarf's page (Dwarvish quote 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 obtained from screenshots and/or from creating a program to execute the dwarvish translation code found in the game executable.

Use

This template takes no parameters. It automatically uses the pagename on which it is placed.

{{GiftHeader}}



Main article: Friendship#Gifts

You can give GiftHeader up to two gifts per week (plus one on their birthday), which will raise or lower their friendship with you. Gifts on their birthday ([[{{{birthday season}}}#Events|{{{birthday season}}} {{{birthday day}}}]]) will have 8× effect and show a unique dialogue.
For loved or liked gifts, GiftHeader will say

“A birthday gift? That's very kind of you! I love it.”
“You remembered my birthday! Thank you, this is great!”

For neutral gifts, GiftHeader will say

“Oh, a birthday gift! Thank you.”

For disliked or hated gifts, GiftHeader will say

“Oh... It's for my birthday? ... Thanks.”