Difference between revisions of "GetNumItems"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(OBSE)
 
imported>DragoonWraith
(notes found by scruggsywuggsy the ferret)
Line 4: Line 4:
  GetNumItems
  GetNumItems


Must be called on a reference. Returns the number of items in the object's inventory.
Must be called on a reference. Returns the number of unique items in the object's inventory.
 
==Notes==
 
*Note that it is the number of ''unique'' items in the inventory - 10 arrows will only count as one item.
*Gold counts as an item, so if you have any gold, you'll get a +1 to your return
*Equipped items and identical items that are unequipped are still only one unique item


[[Category: Oblivion Script Extender]]
[[Category: Oblivion Script Extender]]

Revision as of 17:25, 25 July 2006

A command for Oblivion Script Extender

Syntax:

GetNumItems

Must be called on a reference. Returns the number of unique items in the object's inventory.

Notes

  • Note that it is the number of unique items in the inventory - 10 arrows will only count as one item.
  • Gold counts as an item, so if you have any gold, you'll get a +1 to your return
  • Equipped items and identical items that are unequipped are still only one unique item