Changes

Jump to navigation Jump to search
1,240 bytes removed ,  21:19, 11 April 2023
replace arrays with module calls
Line 1: Line 1: −
<includeonly>{{#arraydefine:rude|Abigail,Alex,Clint,George,Haley,Pam,Sebastian,Shane,Wizard|,}}
+
<includeonly>
{{#arraydefine:female|Abigail,Emily,Haley,Leah,Maru,Penny,Caroline,Evelyn,Jas,Jodi,Marnie,Pam,Robin,Sandy|,}}<!--
  −
-->{{#arraydefine:male|Alex,Elliott,Harvey,Leo,Sam,Sebastian,Shane,Clint,Demetrius,George,Gus,Kent,Krobus,Lewis,Linus,Pierre,Vincent,Willy,Wizard|,}}
   
:''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  
{{#if: {{#arraysearch:female|{{PAGENAME}}|0}} | her  
+
{{#switch:{{#invoke:NPCDispositions|getgender|{{PAGENAME}}}}
| {{#if: {{#arraysearch:male|{{PAGENAME}}|0}} | his  
+
|female = her  
| their  
+
|male = his  
}}
+
|#default = their}}
}}
   
birthday), which will raise or lower  
 
birthday), which will raise or lower  
{{#if: {{#arraysearch:female|{{PAGENAME}}|0}} | her  
+
{{#switch:{{#invoke:NPCDispositions|getgender|{{PAGENAME}}}}
| {{#if: {{#arraysearch:male|{{PAGENAME}}|0}} | his  
+
|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  
{{#if: {{#arraysearch:female|{{PAGENAME}}|0}} | her  
+
{{#switch:{{#invoke:NPCDispositions|getgender|{{PAGENAME}}}}
| {{#if: {{#arraysearch:male|{{PAGENAME}}|0}} | his  
+
|female = her  
| their  
+
|male = his  
}}
+
|#default = their}}
}}
+
birthday ({{Season
birthday ([[{{#switch:{{PAGENAME}}
+
|{{#invoke:NPCDispositions|getbirthseason|{{PAGENAME}}}}
|Penny|Elliott|Jodi|Abigail|Sandy|Marnie|Robin|George=Fall
+
|{{#invoke:NPCDispositions|getbirthday|{{PAGENAME}}}}
|Kent|Lewis|Vincent|Haley|Pam|Shane|Pierre|Emily=Spring
+
}}) will have effect and show a unique dialogue.<br />For loved or liked gifts, {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} will say  
|Leo|Jas|Gus|Maru|Alex|Sam|Demetrius|Dwarf|Willy=Summer
+
{{#switch:{{#invoke:NPCDispositions|getdisposition|{{PAGENAME}}}}
|Krobus|Linus|Caroline|Sebastian|Harvey|Wizard|Evelyn|Leah|Clint=Winter
+
|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=Seasons}}#Events|{{#switch:{{PAGENAME}}|Penny|Elliott|Jodi|Abigail|Sandy|Marnie|Robin|George=Fall
+
|#default = {{#switch: {{PAGENAME}}
|Kent|Lewis|Vincent|Haley|Pam|Shane|Pierre|Emily=Spring
  −
|Leo|Jas|Gus|Maru|Alex|Sam|Demetrius|Dwarf|Willy=Summer
  −
|Krobus|Linus|Caroline|Sebastian|Harvey|Wizard|Evelyn|Leah|Clint=Winter
  −
|#default=Seasons}}&nbsp;{{#switch:{{PAGENAME}}|Krobus=1|Penny=2|Linus=3|Kent|Jas=4|Elliott=5|Lewis|Caroline=7|Gus=8|Vincent|Maru|Sebastian=10|Jodi=11|Abigail|Alex=13|Haley|Harvey=14|Sandy=15|Sam|Wizard=17|Marnie|Pam=18|Demetrius=19|Shane|Evelyn=20|Robin=21|Dwarf=22|Leah=23|George|Willy=24|Pierre|Clint|Leo=26|Emily=27|#default=00}}]]) will have 8&times; effect and show a unique dialogue.<br />For loved or liked gifts, {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} will say  
  −
{{#if: {{#arraysearch:rude|{{PAGENAME}}|0}}  
  −
| <!-- 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.}}  
  −
 
  −
| <!-- other than rude -->
  −
{{#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!}}
}} <!--switch-->
+
}} }}
}} <!--if-->
     −
For neutral gifts, {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} will say
+
For neutral gifts, {{#switch: {{PAGENAME}} | Dwarf | Wizard = the {{PAGENAME}} | #default = {{PAGENAME}}}} will say
{{#if: {{#arraysearch:rude|{{PAGENAME}}|0}}  
+
{{#switch:{{#invoke:NPCDispositions|getdisposition|{{PAGENAME}}}}
| <!-- rude --> {{quote|For my birthday? Thanks.}}
+
|rude = {{quote|For my birthday? Thanks.}}
| <!-- other than rude -->
+
|#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.}}  
}}<!--switch-->
+
}} }}
}}<!--if-->
      
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
{{#if: {{#arraysearch:rude|{{PAGENAME}}|0}}  
+
{{#switch:{{#invoke:NPCDispositions|getdisposition|{{PAGENAME}}}}
| <!-- rude --> {{quote|It's my birthday and you give me this? Is this some kind of joke?}}  
+
|rude = {{quote|It's my birthday and you give me this? Is this some kind of joke?}}
| <!-- other than rude -->
+
| #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.}}}}<!--switch-->}}<!--if--></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
+
| #default = {{quote|Oh... It's for my birthday? ... Thanks.}}}}}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
107,434

edits

Navigation menu