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,308 bytes added, 01:09, 11 March 2020
+ schedule initial commands
==Schedule script==
Each schedule entry value has an arbitrary number of slash-delimited schedule commands in this form:matching one of the formats below.
===Initial commands===
A script may have one initial command as the first field in the script, before the first <tt>/</tt> character. The <tt>GOTO</tt> command can also appear in the next two fields after <tt>MAIL</tt>, or the next field after <tt>NOT</tt>.
 
{| class="wikitable"
|-
! command
! description
|-
| <tt>GOTO {{t|key}}</tt>
| (Note: this line only applies if <tt>GOTO</tt> is the first command. If it's not, see <tt>GOTO</tt> below.)<br />End the current script and load the schedule with the given key instead. If the key is "season", the current season name is used instead. If the schedule doesn't exist or can't be parsed, the <tt>spring</tt> schedule will be used instead.<br /><small>Example: <tt>GOTO spring</tt></small>
|-
| <tt>NOT friendship {{t|npc name}} {{t|hearts}}</tt>
| End the current script if ''any'' player ''does'' have at least that many [[friendship|hearts]] with any of the named NPCs (can list multiple). If the script is ended, the <tt>spring</tt> schedule is used instead.<br /><small>Example: <tt>NOT friendship Sebastian 6 Abigail 3</tt> (script ends if any player has 6+ hearts with Sebastian and/or 3+ hearts with Abigail).</small>
|-
| <tt>NOT</tt>
| Does nothing if the next word is not <tt>friendship</tt>.
|-
| <tt>MAIL {{t|letter ID}}</tt>
| Runs the next command if the player did ''not'' receive the given letter ID or world state ID (see <tt>HasFlag</tt> in the [https://github.com/Pathoschild/StardewMods/tree/develop/ContentPatcher Content Patcher documentation]). May<br /><small>Example: <tt>MAIL ccVault/GOTO spring/GOTO summer</tt> (runs <tt>GOTO spring</tt> if the bus is repaired, or <tt>GOTO summer</tt> if it isn't; not limited to <tt>GOTO</tt> commands).</small>
|-
| <tt>GOTO {{t|key}}</tt>
| (Note: this line only applies if <tt>GOTO</tt> is after <tt>NOT</tt> and/or <tt>MAIL</tt>. If it's not, see <tt>GOTO</tt> above.)<br />End the current script and load the schedule with the given key instead. If the key is "season", the current season name is used instead. If the key is "NO_SCHEDULE", the NPC has no schedule for the day. If the schedule doesn't exist or can't be parsed, the game crashes (or shows an error if playing with SMAPI).<br /><small>Example: <tt>GOTO NO_SCHEDULE</tt></small>
|}
 
===Schedule points===
<source lang="yaml">
<time> <map> <coord x y> <position> <animation> <Strings>
Protected, translators
5,421
edits

Navigation menu