Line 75: |
Line 75: |
| |- | | |- |
| | <tt>set-up</tt> | | | <tt>set-up</tt> |
− | | The [[Modding:Event data|event script]] that's run when the player first enters the festival. This includes moving the player to the festival map. | + | | The [[Modding:Event data|event script]] that's run when the player first enters the festival. This includes moving the player to the festival map. This field supports [[#Year variants|year variants]]. |
| |- | | |- |
| | <tt>Set-Up_additionalCharacters</tt> | | | <tt>Set-Up_additionalCharacters</tt> |
Line 81: |
Line 81: |
| |- | | |- |
| | <tt>{{t|NPC name}}_spouse</tt> | | | <tt>{{t|NPC name}}_spouse</tt> |
− | | The [[Modding:Dialogue#Format|dialog line]] the named NPC will say when the player talks to them, if they're married to the player. | + | | The [[Modding:Dialogue#Format|dialog line]] the named NPC will say when the player talks to them, if they're married to the player. This field supports [[#Year variants|year variants]]. |
| |- | | |- |
| | <tt>{{t|NPC name}}</tt> | | | <tt>{{t|NPC name}}</tt> |
− | | The [[Modding:Dialogue#Format|dialog line]] the named NPC will say when the player talks to them, if <tt>{{t|NPC name}}_spouse</code></tt> doesn't exist or apply. | + | | The [[Modding:Dialogue#Format|dialog line]] the named NPC will say when the player talks to them, if <tt>{{t|NPC name}}_spouse</code></tt> doesn't exist or apply. This field supports [[#Year variants|year variants]]. |
| |} | | |} |
| | | |
− | Several fields allow annual variants (specifically <tt>set-up</tt>, <tt>{{t|NPC name}}</tt>, and <tt>{{t|NPC name}}_spouse</tt>). These work by prefixing <tt>_y{{t|year modulo}}</tt> to the key, where the {{t|year modulo}} is an incrementing number starting at 1 with no upper limit. For example, two entries <tt>set-up_y1</tt> and <tt>set-up_y2</tt> will alternate between the two set-ups each year (<tt>set-up_y1</tt> in year 1, <tt>set-up_y2</tt> in year 2, <tt>set-up_y1</tt> in year 3, etc). If annual variants are defined, the original key is ignored (e.g. <tt>set-up</tt> will never be used if <tt>set-up_y*</tt> entries are defined).
| + | Any other entry is [[Modding:Event data|event data]] for a cutscene during the festival. In some cases like the [[Luau]], these are linked together when played in the game. |
| | | |
− | Any other entry is [[Modding:Event_data|event data]] for a cutscene during the festival. In some cases like the [[Luau]], these are linked together when played in the game.
| + | ===Year variants=== |
| + | Several fields allow annual variants (documented in the table above). These work by prefixing <tt>_y{{t|year variant}}</tt> to the key, where the {{t|year variant}} is an incrementing number starting at 1 with no upper limit. For example, two entries <tt>set-up_y1</tt> and <tt>set-up_y2</tt> will alternate between the two set-ups each year (<tt>set-up_y1</tt> in year 1, <tt>set-up_y2</tt> in year 2, <tt>set-up_y1</tt> in year 3, etc). If year variants are defined for a key, the original key is ignored (e.g. <tt>set-up</tt> will never be used if <tt>set-up_y*</tt> entries are defined). |
| | | |
| ===Shop format=== | | ===Shop format=== |