Difference between revisions of "Template:GiftHeader"
Margotbean (talk | contribs) |
Margotbean (talk | contribs) (replace arrays with module calls) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly> |
− | |||
− | |||
:''Main article: [[Friendship#Gifts|Friendship]]'' | :''Main article: [[Friendship#Gifts|Friendship]]'' | ||
:''See also: [[List of All Gifts]]'' | :''See also: [[List of All Gifts]]'' | ||
You can give {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} up to two gifts per week (plus one on | You can give {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} up to two gifts per week (plus one on | ||
− | {{# | + | {{#switch:{{#invoke:NPCDispositions|getgender|{{PAGENAME}}}} |
− | | | + | |female = her |
− | | their | + | |male = his |
− | + | |#default = their}} | |
− | }} | ||
birthday), which will raise or lower | birthday), which will raise or lower | ||
− | {{# | + | {{#switch:{{#invoke:NPCDispositions|getgender|{{PAGENAME}}}} |
− | | | + | |female = her |
− | | their | + | |male = his |
− | + | |#default = their}} | |
− | }} | ||
[[friendship]] with you. {{#switch: {{PAGENAME}} | [[friendship]] with you. {{#switch: {{PAGENAME}} | ||
| Dwarf = <span style="font-weight: bold;">Note that if you do not understand Dwarvish, friendship will be unaffected by gifts.</span> | | Dwarf = <span style="font-weight: bold;">Note that if you do not understand Dwarvish, friendship will be unaffected by gifts.</span> | ||
| #default = | | #default = | ||
}} Gifts on | }} Gifts on | ||
− | {{# | + | {{#switch:{{#invoke:NPCDispositions|getgender|{{PAGENAME}}}} |
− | | | + | |female = her |
− | | their | + | |male = his |
− | + | |#default = their}} | |
− | }} | + | birthday ({{Season |
− | birthday ( | + | |{{#invoke:NPCDispositions|getbirthseason|{{PAGENAME}}}} |
− | + | |{{#invoke:NPCDispositions|getbirthday|{{PAGENAME}}}} | |
− | + | }}) will have 8× effect and show a unique dialogue.<br />For loved or liked gifts, {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} will say | |
− | + | {{#switch:{{#invoke:NPCDispositions|getdisposition|{{PAGENAME}}}} | |
− | + | |rude = {{quote|You remembered my birthday? I'm impressed. Thanks.}}{{quote|Oh, is it my birthday today? I guess it is. Thanks. This is nice.}} | |
− | + | |#default = {{#switch: {{PAGENAME}} | |
− | |||
− | | | ||
− | |||
− | |||
− | {{# | ||
− | | | ||
− | |||
− | | | ||
− | {{#switch: {{PAGENAME}} | ||
| Dwarf = {{quote|A birthday gift? That's very kind of you! I love it.}}{{quote|A punhaan nuh? Xha's zinan mu oh anoe! U ozi u.h}}{{quote|You remembered my birthday! Thank you. This is great.}}{{quote|Anoe nimimpini man punhaan! Xham anoe. Xhus us nnia.h}} | | Dwarf = {{quote|A birthday gift? That's very kind of you! I love it.}}{{quote|A punhaan nuh? Xha's zinan mu oh anoe! U ozi u.h}}{{quote|You remembered my birthday! Thank you. This is great.}}{{quote|Anoe nimimpini man punhaan! Xham anoe. Xhus us nnia.h}} | ||
| #default = {{quote|A birthday gift? That's very kind of you! I love it.}}{{quote|You remembered my birthday! Thank you. This is great!}} | | #default = {{quote|A birthday gift? That's very kind of you! I love it.}}{{quote|You remembered my birthday! Thank you. This is great!}} | ||
− | }} | + | }} }} |
− | }} | ||
− | For neutral gifts, {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} | + | For neutral gifts, {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} will say |
− | {{# | + | {{#switch:{{#invoke:NPCDispositions|getdisposition|{{PAGENAME}}}} |
− | | | + | |rude = {{quote|For my birthday? Thanks.}} |
− | | | + | |#default = {{#switch: {{PAGENAME}} |
− | {{#switch: {{PAGENAME}} | ||
| Dwarf = {{quote|Oh, a birthday gift! Thank you.}}{{quote|Oh, a punhaan nuh! Xham anoe.}} | | Dwarf = {{quote|Oh, a birthday gift! Thank you.}}{{quote|Oh, a punhaan nuh! Xham anoe.}} | ||
| #default = {{quote|Oh, a birthday gift! Thank you.}} | | #default = {{quote|Oh, a birthday gift! Thank you.}} | ||
− | }} | + | }} }} |
− | }} | ||
For disliked or hated gifts, {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} will say | For disliked or hated gifts, {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} will say | ||
− | {{# | + | {{#switch:{{#invoke:NPCDispositions|getdisposition|{{PAGENAME}}}} |
− | | | + | |rude = {{quote|It's my birthday and you give me this? Is this some kind of joke?}} |
− | | | + | | #default = {{#switch: {{PAGENAME}} |
− | {{#switch: {{PAGENAME}} | ||
| Dwarf = {{quote|Oh... It's for my birthday? ... Thanks.}}{{quote|Oh... U's hon man punhaan? ... Xhams.s}} | | Dwarf = {{quote|Oh... It's for my birthday? ... Thanks.}}{{quote|Oh... U's hon man punhaan? ... Xhams.s}} | ||
− | | #default = {{quote|Oh... It's for my birthday? ... Thanks.}}}} | + | | #default = {{quote|Oh... It's for my birthday? ... Thanks.}}}}}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
Revision as of 21:19, 11 April 2023
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
- See also: List of All 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 () 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.” |