Take closet: Difference between revisions
Jump to navigation
Jump to search
imported>Bale mNo edit summary |
imported>Camber m change 'from your display case' to 'from your closet' |
||
Line 25: | Line 25: | ||
}}| | }}| | ||
function_description=Attempts to move {{pspan|qty}} of {{pspan|it}} from your | function_description=Attempts to move {{pspan|qty}} of {{pspan|it}} from your closet to your main inventory. Returns true if the move succeeds and false if it does not. If used without {{pspan|it}} specified, this function will move meat instead of an item.| | ||
needscode=yes| | needscode=yes| |
Revision as of 17:53, 7 October 2010
needs(code_samples);
Function Syntax
boolean take_closet(int qty ,item it )
- qty is the quantity to move
- it is the item to move
Attempts to move qty of it from your closet to your main inventory. Returns true if the move succeeds and false if it does not. If used without it specified, this function will move meat instead of an item.
CLI Equivalent
The CLI command "closet" with the parameter "take" works similarly.