Changes

Jump to navigation Jump to search
update links to migration guide sections
Line 53: Line 53:  
|-
 
|-
 
| <samp>IS_PASSIVE_FESTIVAL_OPEN {{t|id}}</samp>
 
| <samp>IS_PASSIVE_FESTIVAL_OPEN {{t|id}}</samp>
| Whether a [[#Custom passive festivals|passive festival]] with the given ID is active today, and the current time is within its opening hours.
+
| Whether a [[Modding:Migrate to Stardew Valley 1.6#Custom passive festivals|passive festival]] with the given ID is active today, and the current time is within its opening hours.
 
|-
 
|-
 
| <samp>IS_PASSIVE_FESTIVAL_TODAY {{t|id}}</samp>
 
| <samp>IS_PASSIVE_FESTIVAL_TODAY {{t|id}}</samp>
| Whether a [[#Custom passive festivals|passive festival]] with the given ID is active today.
+
| Whether a [[Modding:Migrate to Stardew Valley 1.6#Custom passive festivals|passive festival]] with the given ID is active today.
 
|-
 
|-
 
| <samp>SEASON {{t|season}}+</samp>
 
| <samp>SEASON {{t|season}}+</samp>
Line 156: Line 156:  
|-
 
|-
 
| <samp>LOCATION_SEASON {{t|location}} [{{t|season}}]+</samp>
 
| <samp>LOCATION_SEASON {{t|location}} [{{t|season}}]+</samp>
| Whether the [[#Target location|given location]] is in one of the given seasons (which can be <samp>spring</samp>, <samp>summer</samp>, <samp>fall</samp>, or <samp>winter</samp>). This accounts for the <samp>SeasonOverride</samp> field in the [[#Custom location contexts|location's context data]].
+
| Whether the [[#Target location|given location]] is in one of the given seasons (which can be <samp>spring</samp>, <samp>summer</samp>, <samp>fall</samp>, or <samp>winter</samp>). This accounts for the <samp>SeasonOverride</samp> field in the [[Modding:Migrate to Stardew Valley 1.6#Custom location contexts|location's context data]].
    
For example, this is valid in spring ''or'' summer: <code>LOCATION_SEASON Here spring summer</code>.
 
For example, this is valid in spring ''or'' summer: <code>LOCATION_SEASON Here spring summer</code>.
Line 164: Line 164:  
|-
 
|-
 
| <samp>WEATHER {{t|location}} {{t|weather}}</samp>
 
| <samp>WEATHER {{t|location}} {{t|weather}}</samp>
| The weather ID in the [[#Target location|given location]]. The weather can be one of <samp>Festival</samp>, <samp>Rain</samp>, <samp>Snow</samp>, <samp>Storm</samp>, <samp>Sun</samp>, <samp>Wind</samp>, or a [[#Custom weather|custom weather ID]].
+
| The weather ID in the [[#Target location|given location]]. The weather can be one of <samp>Festival</samp>, <samp>Rain</samp>, <samp>Snow</samp>, <samp>Storm</samp>, <samp>Sun</samp>, <samp>Wind</samp>, or a [[Modding:Migrate to Stardew Valley 1.6#Custom weather|custom weather ID]].
 
|-
 
|-
 
| <samp>WORLD_STATE_FIELD {{t|name}} {{t|value}}</samp>
 
| <samp>WORLD_STATE_FIELD {{t|name}} {{t|value}}</samp>
Line 263: Line 263:  
|-
 
|-
 
| <samp>PLAYER_HAS_ITEM {{t|player}} {{t|item}} {{o|min}} {{o|max}}</samp>
 
| <samp>PLAYER_HAS_ITEM {{t|player}} {{t|item}} {{o|min}} {{o|max}}</samp>
| Whether the [[#Target player|specified player(s)]] have between {{o|min}} and {{o|max}} (default unlimited) matching items in their inventory, inclusively. The {{t|item}} can be <samp>858</samp> or <samp>(O)858</samp> (Qi Gems), <samp>73</samp> or <samp>(O)73</samp> (Walnuts), or the [[#Custom items|qualified or unqualified item ID]].
+
| Whether the [[#Target player|specified player(s)]] have between {{o|min}} and {{o|max}} (default unlimited) matching items in their inventory, inclusively. The {{t|item}} can be <samp>858</samp> or <samp>(O)858</samp> (Qi Gems), <samp>73</samp> or <samp>(O)73</samp> (Walnuts), or the [[Modding:Migrate to Stardew Valley 1.6#Custom items|qualified or unqualified item ID]].
 
|-
 
|-
 
| <samp>PLAYER_HAS_PROFESSION {{t|player}} {{t|profession id}}</samp>
 
| <samp>PLAYER_HAS_PROFESSION {{t|player}} {{t|profession id}}</samp>
Line 284: Line 284:  
|-
 
|-
 
| <samp>PLAYER_LOCATION_CONTEXT {{t|player}} {{t|location context}}</samp>
 
| <samp>PLAYER_LOCATION_CONTEXT {{t|player}} {{t|location context}}</samp>
| Whether the [[#Target player|specified player(s)]] are in the given [[#Custom location contexts|location context]].
+
| Whether the [[#Target player|specified player(s)]] are in the given [[Modding:Migrate to Stardew Valley 1.6#Custom location contexts|location context]].
 
|-
 
|-
 
| <samp>PLAYER_LOCATION_NAME {{t|player}} {{t|location name}}</samp><br /><samp>PLAYER_LOCATION_UNIQUE_NAME {{t|player}} {{t|location name}}</samp>
 
| <samp>PLAYER_LOCATION_NAME {{t|player}} {{t|location name}}</samp><br /><samp>PLAYER_LOCATION_UNIQUE_NAME {{t|player}} {{t|location name}}</samp>
Line 458: Line 458:  
|-
 
|-
 
| <samp>ITEM_ID {{t|target}} {{t|item ID}}</samp>
 
| <samp>ITEM_ID {{t|target}} {{t|item ID}}</samp>
| Whether the item has the given [[#Custom items|qualified or unqualified item ID]]. The item ID is qualified before checking, so <samp>128</samp> will match pufferfish (<samp>(O)128</samp>) but not mushroom boxes (<samp>(BC)128</samp>).
+
| Whether the item has the given [[Modding:Migrate to Stardew Valley 1.6#Custom items|qualified or unqualified item ID]]. The item ID is qualified before checking, so <samp>128</samp> will match pufferfish (<samp>(O)128</samp>) but not mushroom boxes (<samp>(BC)128</samp>).
 
|-
 
|-
 
| <samp>ITEM_QUALITY {{t|target}} {{t|min}} {{o|max}}</samp>
 
| <samp>ITEM_QUALITY {{t|target}} {{t|min}} {{o|max}}</samp>
Line 467: Line 467:  
|-
 
|-
 
| <samp>ITEM_TYPE {{t|target}} {{t|type}}</samp>
 
| <samp>ITEM_TYPE {{t|target}} {{t|type}}</samp>
| Whether the [[#Custom items|item's type definition ID]] matches the given value. For example, <samp>ITEM_TYPE Target (BC)</samp> matches bigcraftables.
+
| Whether the [[Modding:Migrate to Stardew Valley 1.6#Custom items|item's type definition ID]] matches the given value. For example, <samp>ITEM_TYPE Target (BC)</samp> matches bigcraftables.
 
|}
 
|}
   Line 500: Line 500:  
|-
 
|-
 
| ''any other''
 
| ''any other''
| The [[#Custom locations|location ID]] (i.e. internal name) for the location to check.
+
| The [[Modding:Migrate to Stardew Valley 1.6#Custom locations|location ID]] (i.e. internal name) for the location to check.
 
|}
 
|}
  
translators
8,437

edits

Navigation menu