Changes

Jump to navigation Jump to search
→‎Items & money: update player_add docs for SMAPI 4.0
Line 83: Line 83:  
{{/cmd
 
{{/cmd
 
   |command = player_add
 
   |command = player_add
   |params  = {{t|S:item type}}, {{t|I:item ID}}, {{o|I:count}}, {{o|I:quality}}
+
   |params  = {{t|I:item ID}}, {{o|I:count}}, {{o|I:quality}}
   |desc    = Adds an item to your inventory based on its type and ID.
+
   |desc    = Adds an item to your inventory based on its item ID.
    
Parameters:
 
Parameters:
* {{t|S:item type}} is one of <samp>BigCraftable</samp>, <samp>Boots</samp>, <samp>Clothing</samp>, <samp>Flooring</samp>, <samp>Furniture</samp>, <samp>Hat</samp>, <samp>Object</samp>, <samp>Ring</samp>, <samp>Tool</samp>, <samp>Wallpaper</samp>, or <samp>Weapon</samp>.
+
* {{t|I:item ID}} is the unique ID for the item to add (as shown by the <samp>list_items</samp> command).
* {{t|I:item ID}} is the integer item ID (as shown by the <samp>list_items</samp> command).
   
* {{o|I:count}} is how many items to add to your inventory (defaults to 1).
 
* {{o|I:count}} is how many items to add to your inventory (defaults to 1).
 
* {{o|I:quality}} is the quality of the item to create (defaults to normal). This can be one of <samp>0</samp> (normal), <samp>1</samp> (silver), <samp>2</samp> (gold), or 4 (<samp>iridium</samp>).
 
* {{o|I:quality}} is the quality of the item to create (defaults to normal). This can be one of <samp>0</samp> (normal), <samp>1</samp> (silver), <samp>2</samp> (gold), or 4 (<samp>iridium</samp>).
   |example = <code>player_add object 246</code> will create a [[Wheat Flour]] item.;<code>player_add object pufferfish 10 4</code> would create 10 iridium-quality [[pufferfish]].
+
   |example = <code>player_add (O)246</code> will create a [[Wheat Flour|wheat flour]] item.;<code>player_add (O)128 10 4</code> would create 10 iridium-quality [[pufferfish]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
translators
8,403

edits

Navigation menu