Closet amount: Difference between revisions
Jump to navigation
Jump to search
imported>Alhifar mNo edit summary |
imported>StDoodle mNo edit summary |
||
Line 12: | Line 12: | ||
return_also={{#var:return_also}}| | return_also={{#var:return_also}}| | ||
parameter1={{Param|item|it}}| | parameter1={{Param|item|it}}| | ||
p1desc={{Pspan|it}} is the item | p1desc={{Pspan|it}} is the item to check| | ||
}}| | }}| | ||
Line 30: | Line 30: | ||
see_also={{SeeAlso|item_amount|display_amount}}| | see_also={{SeeAlso|item_amount|display_amount}}| | ||
special= | special=Returns 0 when not logged in. | ||
}} | }} |
Revision as of 20:56, 1 March 2010
Function Syntax
- it is the item to check
Returns the amount of a given item that is contained in your closet.
Sample Code
Checks if you have enough filthy lucre for Olfaction
void main(){
if( item_amount($item[filthy lucre]) + display_amount($item[filthy lucre]) + closet_amount($item[filthy lucre]) > 200 ){ print( "Go get olfaction!" ) }
else print( "Keep going, you need more lucre!" );
}
See Also
Special
Returns 0 when not logged in.