Line 3,745: |
Line 3,745: |
| | ''(Optional)'' Whether to ignore the shop's <samp>PriceModifiers</samp> field for this item. This has no effect on the item's equivalent field. Default false. | | | ''(Optional)'' Whether to ignore the shop's <samp>PriceModifiers</samp> field for this item. This has no effect on the item's equivalent field. Default false. |
| |- | | |- |
− | | <samp>AvailableStockModifiers</samp><br /><samp>PriceModifiers</samp><br /><samp>StackModifiers</samp> | + | | <samp>AvailableStockModifiers</samp><br /><samp>PriceModifiers</samp><br /><samp>QualityModifiers</samp><br /><samp>StackModifiers</samp> |
− | | ''(Optional)'' [[#Quantity modifiers|Quantity modifiers]] applied to the <samp>AvailableStock</samp>, <samp>Price</samp>, or <samp>Stack</samp> values. The price modifiers stack with with the <samp>PriceModifiers</samp> field on the shop (unless <samp>IgnoreStorePriceModifiers</samp> is true). | + | | ''(Optional)'' [[#Quantity modifiers|Quantity modifiers]] applied to the <samp>AvailableStock</samp>, <samp>Price</samp>, <samp>Quality</samp>, or <samp>Stack</samp> values. |
| + | |
| + | Notes: |
| + | * The price modifiers stack with the <samp>PriceModifiers</samp> field on the shop (unless <samp>IgnoreStorePriceModifiers</samp> is true). |
| + | * The quality modifiers operate on the numeric quality values (''i.e.'' <samp>0</samp> = normal, <samp>1</samp> = silver, <samp>2</samp> = gold, and <samp>4</samp> = iridium). For example, silver × 2 is gold. |
| |- | | |- |
− | | <samp>AvailableStockModifierMode</samp><br /><samp>PriceModifierMode</samp><br /><samp>StackModifierMode</samp> | + | | <samp>AvailableStockModifierMode</samp><br /><samp>PriceModifierMode</samp><br /><samp>QualityModifierMode</samp><br /><samp>StackModifierMode</samp> |
− | | ''(Optional)'' [[#Quantity modifiers|quantity modifier modes]] which indicate what to do if multiple modifiers in the <samp>AvailableStockModifiers</samp>, <samp>PriceModifiers</samp>, or <samp>StackModifiers</samp> field apply at the same time. Default <samp>Stack</samp>. | + | | ''(Optional)'' [[#Quantity modifiers|quantity modifier modes]] which indicate what to do if multiple modifiers in the <samp>AvailableStockModifiers</samp>, <samp>PriceModifiers</samp>, <samp>Quality</samp>, or <samp>StackModifiers</samp> field apply at the same time. Default <samp>Stack</samp>. |
| |- | | |- |
| | <samp>Quality</samp> | | | <samp>Quality</samp> |
| | ''(Optional)'' The quality of the item to sell. One of <samp>0</samp> (normal), <samp>1</samp> (silver), <samp>2</samp> (gold), or <samp>4</samp> (iridium). Invalid values will snap to the closest valid one (e.g. <samp>7</samp> will become iridium). Default normal quality. | | | ''(Optional)'' The quality of the item to sell. One of <samp>0</samp> (normal), <samp>1</samp> (silver), <samp>2</samp> (gold), or <samp>4</samp> (iridium). Invalid values will snap to the closest valid one (e.g. <samp>7</samp> will become iridium). Default normal quality. |
| |- | | |- |
− | | <samp>Stack</samp> | + | | <samp>MinStack</samp> |
− | | ''(Optional)'' The item's stack size after it's purchased. For example, setting this to <samp>5</samp> will give the player five items when they purchase it once. This is only applied after the item is purchased, so it has no effect on the price or <samp>Stock</samp> limit. Default 1. | + | | ''(Optional)'' The item's stack size after it's purchased. For example, setting this to <samp>5</samp> will give the player five items when they purchase it once. This is only applied after the item is purchased, so it has no effect on the price or <samp>Stock</samp> limit. Default -1, which keeps the value set by the item query (usually 1). |
| + | |- |
| + | | <samp>MaxStack</samp> |
| + | | ''(Optional)'' If set to a value higher than <samp>MinStack</samp>, the stack is set to a random value between them (inclusively). |
| |- | | |- |
| | <samp>ToolUpgradeLevel</samp> | | | <samp>ToolUpgradeLevel</samp> |