GetNumItems(object, string)

Gets the number of the item that the target carries.

int GetNumItems(
    object oTarget,
    string sItem
);

Parameters

oTarget

The creature to check the inventory.

sItem

The tag of the item to search for.


Description

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



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.


Requirements

#include "nw_i0_plot"

Version

1.61

See Also

functions: GetNumStackedItems
categories: Get Data from Creature Functions | Inventory Functions


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