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

1,041 bytes added, 02:48, 11 March 2020
Schedule points: expand, rewrite incorrect information
===Schedule points===
The rest of the schedule script consists of slash-delimited entries, each containing space-separated fields which specify a start time, destination, and what to do when the NPC reaches it:: <source lang="yaml"tt><{{t|time> <map> <coord x y> <position> <}} {{o|location}} {{t|tileX}} {{t|tileY}} {{o|facingDirection}} {{o|animation> <Strings>}} {{o|dialogue}}</sourcett>
* {{t|time}} is If the time at which the schedule event begins, in military time (24 hour format, no colon)* {{o|map}} is the map on which the target <tt>location </tt> field is* {{o|coord x y}} is omitted, the x and y coordinates rest of the target location, without a comma* {{o|position}} fields are parsed as normal. The direction the NPC actor shall face once reaching the target locationother optional fields must be in sequential order (e.* {{o|animation}} (optional): is the animation the NPC actor will execute at reaching the target locationg.* {{o|Strings}} (optional): This is managed from stringsyou can skip <tt>dialogue</schedulett>, but you can't skip <tt>animation</tt> and then specify <NPC Namett>dialogue</tt>). A specific format must be followed!
At {{t|class="wikitable"|-! field! description|-| <tt>time}} </tt>| The time at which the NPC schedule event begins to travel , in military time (24 hour format, no colon).|-| <tt>location</tt>| <p>''(optional)'' The location name the NPC should walk towards. If omitted, defaults to the target [[Bus Stop|bus stop]] (if married to a player) or their default location. Once there</p><p>'''Note:''' the game has special logic for unlockable locations. If this is JojaMart/Railroad and it's not available yet, the game gets the replacement destination from the first entry in the <tt>{{ot|animationlocation}} is executed until _Replacement</tt> schedule if available; otherwise it switches to the next <tt>default</tt> schedule event beginsif available, else <tt>spring</tt>. There If this is possibly no limit CommunityCenter and it's not available yet, the game switches to how many schedule events one the <tt>default</tt> schedule if available, else <tt>spring</tt>.</p>|-| <tt>tileX</tt><br /><tt>tileY</tt>| The X and Y [[Modding:Modder Guide/Game Fundamentals#Tiles|tile coordinates]] the NPC should walk towards.|-| <tt>facingDirection</tt>| ''(optional)'' The direction to face after reaching the destination. Defaults to down.|-| <tt>animation</tt>| ''(optional)'' The animation to play when the NPC reaches the destination.|-| <tt>dialogue</tt>| <p>''(optional)'' The dialogue the NPC should use when they reach their destination. This must be an [[Modding:Modder Guide/APIs/Content|asset name]] and entry may containkey in this exact format (including quotes): <tt>"assetName:key"</tt>.Any slashes in the asset name should be double backslashes (<tt>\\</tt>).</p><p>For example, <tt>\"Strings\\schedules\\Abigail:Sun.000\"</tt> means "open the file at <tt>Strings\schedules\Abigail.xnb</tt> and get the text of the <tt>Sun.000</tt> key".|}
Strings formatFor example, consider this schedule entry in Abigail's schedule: {{o|\<pre>1300 Town 47 87 0 "Strings\\scheduleschedules\\NPCAbigail:schedulemarriage_Mon.000\001"}} Where NPC is the chosen NPC file you are accessing in Strings</schedule. 'schedule' depends on the schedule itself.pre>
If you are using "spring" then you must put spring.000At 13:00 (1pm), ect. Depending on how many times you have the schedule manage dialogue.  Abigail will begin walking to tile (If you have three "spring" scheduled dialogues.. each must be spring.00047, spring87) in the Town location.001When she reaches it, she'll face direction 0 (up) and spring.002). Full Example Coding: {{o|1030 SeedShop 20 5 1 \say "Strings\\schedules\\Abigail:Sun.000\"}} This means in Abigail's {{t|Sun}} schedule'Hey, she will go @. I like to her mother's room at 1030 and access {{o|Sunrelax here.000}} which reads {{t|"Sun.000": "We. it're hiding in here s so we donpeaceful.''t have to talk to anyone.",}}
==Potential issues==
Protected, translators
5,421
edits

Navigation menu