Changes

Jump to navigation Jump to search
→‎For items only: update for 1.6 build 23339 (added ITEM_CATEGORY + ITEM_HAS_EXPLICIT_OBJECT_CATEGORY + ITEM_HAS_NUMERIC_ID + ITEM_ID_PREFIX + ITEM_OBJECT_TYPE; ITEM_ID and ITEM_TYPE now allow multiple values; ITEM_ID now checks unqualified item IDs too)
Line 452: Line 452:  
! Condition
 
! Condition
 
! effect
 
! effect
 +
|-
 +
| <samp>ITEM_CATEGORY {{t|target}}</samp>
 +
| Whether the item has a non-zero [[Modding:Items#Category|category]].
 +
|-
 +
| <samp>ITEM_CATEGORY {{t|target}} {{o|category}}+</samp>
 +
| Whether the item's [[Modding:Items#Category|category]] number matches one of the given values.
 
|-
 
|-
 
| <samp>ITEM_HAS_EDIBILITY {{t|target}} {{o|min}} {{o|max}}</samp>
 
| <samp>ITEM_HAS_EDIBILITY {{t|target}} {{o|min}} {{o|max}}</samp>
 
| Whether the item's edibility is between {{o|min}} (default -299) and {{o|max}} (default unlimited) inclusively. A value of -300 is inedible, so <samp>ITEM_HAS_EDIBILITY {{t|target}}</samp> without min/max values checks if the item is edible.
 
| Whether the item's edibility is between {{o|min}} (default -299) and {{o|max}} (default unlimited) inclusively. A value of -300 is inedible, so <samp>ITEM_HAS_EDIBILITY {{t|target}}</samp> without min/max values checks if the item is edible.
 +
|-
 +
| <samp>ITEM_HAS_NUMERIC_ID {{t|target}} {{o|min}} {{o|max}}</samp>
 +
| Whether the item has a numeric [[Modding:Migrate to Stardew Valley 1.6#Custom items|unqualified item ID]] which is between {{o|min}} and {{o|max}} (both defaulting to the lowest and highest possible value).
 
|-
 
|-
 
| <samp>ITEM_HAS_TAG {{t|target}} {{t|tags}}</samp>
 
| <samp>ITEM_HAS_TAG {{t|target}} {{t|tags}}</samp>
 
| Whether the item has all of the given space-delimited tags. For example, <code>ITEM_HAS_TAG Target bone_item marine_item</code> will only match items with both tags.
 
| Whether the item has all of the given space-delimited tags. For example, <code>ITEM_HAS_TAG Target bone_item marine_item</code> will only match items with both tags.
 
|-
 
|-
| <samp>ITEM_ID {{t|target}} {{t|item ID}}</samp>
+
| <samp>ITEM_ID {{t|target}} {{t|item ID}}+</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>).
+
| Whether the item has one of the given [[Modding:Migrate to Stardew Valley 1.6#Custom items|qualified or unqualified item IDs]].
 +
|-
 +
| <samp>ITEM_ID_PREFIX {{t|target}} {{t|prefix}}</samp>
 +
| Whether the item's [[Modding:Migrate to Stardew Valley 1.6#Custom items|qualified or unqualified item ID]] starts with the given prefix.
 +
|-
 +
| <samp>ITEM_OBJECT_TYPE {{t|target}} {{t|type}}+</samp>
 +
| Whether the item has one of the given [[Modding:Items#Objects|object types]].
 
|-
 
|-
 
| <samp>ITEM_QUALITY {{t|target}} {{t|min}} {{o|max}}</samp>
 
| <samp>ITEM_QUALITY {{t|target}} {{t|min}} {{o|max}}</samp>
Line 468: Line 483:  
| Whether the item stack size is between {{t|min}} and {{o|max}} (default unlimited) inclusively. Note that this only applies to the target item, it doesn't include other stacks in the inventory.
 
| Whether the item stack size is between {{t|min}} and {{o|max}} (default unlimited) inclusively. Note that this only applies to the target item, it doesn't include other stacks in the inventory.
 
|-
 
|-
| <samp>ITEM_TYPE {{t|target}} {{t|type}}</samp>
+
| <samp>ITEM_TYPE {{t|target}} {{t|type}}+</samp>
| 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.
+
| Whether the [[Modding:Migrate to Stardew Valley 1.6#Custom items|item's type definition ID]] matches one of the given values. For example, <samp>ITEM_TYPE Target (BC)</samp> matches bigcraftables.
 +
|-
 +
| <samp>ITEM_HAS_EXPLICIT_OBJECT_CATEGORY {{t|target}}</samp>
 +
| ''(Specialized)'' Whether the item has an explicit category set in <samp>Data/Objects</samp>, ignoring categories assigned dynamically in code (e.g. for rings). Items without an explicit category are often (but not always) special items like [[Secret Notes|secret notes]] or unimplemented items.
 
|}
 
|}
  
translators
8,439

edits

Navigation menu