HasAnyItemOfBaseType
From NWN Lexicon
Contents |
[edit] HasAnyItemOfBaseType(int, int, object)
Cycles through the players inventory looking for any item that has a certain Base Item Type. If the Base Item Type is Armor, make sure the AC matches.
int HasAnyItemOfBaseType( int nBaseType, int nAC, object oPC );
[edit] Parameters
nBaseType
The Type of Item as defined by the BASE_ITEM_* constants group.
nAC
If the Base Item is Armor only return TRUE if the AC is this.
oPC
The player whose inventory should be checked.
[edit] Description
Returns TRUE if oPC has any item in their inventory of a Base Type of nBaseType (as defined in the BASE_ITEM_* constants group). If the item is an Armor type, then only return TRUE if the AC matches nAC.
[edit] Remarks
Used by BackPackMatch to tell if characters have an item necessary for item creation scenarios.
[edit] Requirements
#include " nw_o0_itemmaker "
[edit] Version
1.22
[edit] See Also
functions: | |
constants: |
author: John Shuell