GetNumItems

From NWN Lexicon



Contents

[edit] GetNumItems(object, string)

Gets the number of the item that the target carries.

int GetNumItems(
    object oTarget,
    string sItem
);

[edit] Parameters

oTarget

The creature to check the inventory.

sItem

The tag of the item to search for.


[edit] Description

Returns the number of items of sItem that oTarget has in inventory, to include all stacked items.



[edit] Remarks

Function can be found in nw_i0_plot.nss line 780.

This will count each individual item in a stack, as well as items that are not in a stack.

Does not count items equipped by oTarget.


[edit] Requirements

#include " nw_i0_plot "

[edit] Version

1.61

[edit] See Also

functions: 

GetNumStackedItems



 author: John Shuell, editor: Lilac Soul, additional contributor(s): Funny, Lilac Soul
 

Personal tools
Categories