This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Changes

Jump to: navigation, search

Modding:Schedule data

2,912 bytes added, 00:25, 11 March 2020
+ schedule keys
</source>}}
==FormatSchedule key=====Conditions===TODOEach schedule has a key which is used to decide when it applies. The key must be one of the exact formats below (it's not dynamic). If multiple schedules apply, the first match in the order listed here is used.
Notes:* Most text is case-sensitive (e.g. <tt>Mon</tt> is not the same as <tt>mon</tt>).* The game's logic for schedule keys is in <tt>NPC::getSchedule</tt>. ===ScheduleMarriage schedules===These apply if the NPC is married to a player (not necessarily the main player). '''Married NPCs don't use any other schedule keys.''' If the marriage keys don't match, they won't have a schedule for that day. {| class="wikitable"|-! syntax! summary|-| <tt>marriageJob</tt>| Used by Harvey on Tuesday/Thursday, Maru on Tuesday/Thursday, Penny on Tuesday/Wednesday/Friday.|-| <tt>marriage_{{t|day of week}}</tt>| Applies on the given day of week when not raining.<br /><small>Example: <tt>marriage_Mon</tt></small>|} ===Normal schedules===These schedules apply to any non-marriage NPC. If none of these keys match, they won't have a schedule for that day. {| class="wikitable"|-! syntax! summary|-| <tt>{{t|season}}_{{t|day of month}}</tt>| Applies on the given date.<br /><small>Example: <tt>spring_15</tt></small>|-| <tt>{{t|day of month}}_{{t|hearts}}</tt>| Applies on the given day of month if ''any'' player has at least that many [[friendship|hearts]] with the NPC. If multiple schedules apply, the one with the highest heart number is used.<br /><small>Example: <tt>11_6</tt></small>|-| <tt>{{t|day of month}}</tt>| Applies on the given day of month.<br /><small>Example: <tt>16</tt></small>|-| <tt>bus</tt>| For [[Pam]] only, applies if the bus is repaired.|-| <tt>rain2</tt>| 50% chance of applying on rainy days.|-| <tt>rain</tt>| Applies on rainy days.|-| <tt>{{t|season}}_{{t|day of week}}_{{t|hearts}}</tt>| Applies in the given season and day of week, if ''any'' player has at least that many [[friendship|hearts]] with the NPC. If multiple schedules apply, the one with the highest heart number is used.<br /><small>Example: <tt>spring_Mon_6</tt></small>|-| <tt>{{t|season}}_{{t|day of week}}</tt>| Applies in the given season and day of week.<br /><small>Example: <tt>spring_Mon</tt></small>|-| <tt>{{t|day of week}}</tt>| Applies in the given day of week.<br /><small>Example: <tt>Mon</tt></small>|-| <tt>{{t|season}}</tt>| Applies in the given season.<br /><small>Example: <tt>spring</tt></small>|-| <tt>spring_{{t|day of week}}</tt>| Applies (in any season) on the given day of week.<br /><small>Example: <tt>spring_Mon</tt></small>|-| <tt>{{t|season}}_spring_{{t|hearts}}</tt>| Applies in the given season, if ''any'' player has at least that many [[friendship|hearts]] with the NPC. If multiple schedules apply, the one with the highest heart number is used.<br /><small>Example: <tt>spring_Mon_6</tt></small>|-| <tt>spring</tt>| Always applies.|} ==Schedule script==
Each schedule entry value has an arbitrary number of slash-delimited schedule commands in this form:
Protected, translators
5,421
edits

Navigation menu