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 );
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.
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.
Remarks
Used by BackPackMatch to tell if characters have an item necessary for item creation scenarios.
Requirements
#include "nw_o0_itemmaker"
Version
1.22
See Also
functions: | GetBackpackMatch |
categories: | Inventory Functions | Item Creation Functions |
constants: | BASE_ITEM_* Constants |
author: John Shuell