Equipped amount: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
Created page with '{{#vardefine:name|equipped_amount}} {{#vardefine:return_type|int}} {{FunctionPage| name={{#var:name}}| function_category=Item Management| function1={{Function| name={{#var:name…'
 
imported>StDoodle
mNo edit summary
Line 27: Line 27:
}}|
}}|


see_also={{SeeAlso|abort}}|
see_also={{SeeAlso|closet_amount|display_amount|item_amount|shop_amount|stash_amount|storage_amount}}|
}}
}}

Revision as of 00:18, 2 March 2010



Function Syntax

int equipped_amount(item it )

  • it is the item that will be checked for among your worn gear.

Returns the amount of a given item currently equipped on your character.

Sample Code

Checks if you're safe to chat.

if (equipped_amount($item[sword behind inappropriate prepositions]) == 1)
   abort("You aren't safe to chat!");

See Also

closet_amount() | display_amount() | item_amount() | shop_amount() | stash_amount() | storage_amount()