From NWN LexiconJump to navigationJump to search
Check to see if the specified item belongs to anyone in the party.
The character whose party is to be checked.
The item to be looked for.
Returns the item object if it is found, otherwise returns OBJECT_INVALID.
Checks each PC in oPC's party to see if they have an item with a tag of sItemTag.
Only checks PC's, not associates.
This is essentially a wrapper for the GetItemPossessedBy function.
The specified PC (oPC) is checked first, then the rest of the party. If there are multiple copies of the item in the party, only the first will be returned.
Also note that x0_i0_partywide is already included in x0_i0_common. So you will only need to include one, not both.
#include " x0_i0_partywide "