Table of Contents

Class NwBaseItem

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

A base item type definition.

public sealed class NwBaseItem
Inheritance
NwBaseItem
Inherited Members
Extension Methods

Properties

ACBonusType

The type of armor class bonus granted, if this item grants one.

AmmunitionType

If this item is a ranged weapon, gets the ammunition type used.

AnimSlashL

Gets the chance (expressed as a percentage) that a character wielding this weapon (item) will be animated as making a slash from the left during an attack.

AnimSlashR

Gets the chance (expressed as a percentage) that a character wielding this weapon (item) will be animated as making a slash from the right during an attack.

AnimSlashS

Gets the chance (expressed as a percentage) that a character wielding this weapon (item) will be animated as making a straight slash (from the center) during an attack.

ArcaneSpellFailure

Gets the percentage this item adds to the chance for arcane spell failure. Not used for armor which uses armor.2da.

ArmorCheckPenalty

Gets the armor check penalty inherent to this item. Not used for armor which uses armor.2da

BaseAC

Gets the armor class value of this shield (before enchantments). Not used for armor.

BaseCost

Gets the base value (in gold pieces) of an unenchanted item of this type.

BaseItemStatsText

Gets the string containing basic statistics of this item. This is displayed under the description when an item is examined in the game.

CanRotateIcon

Gets if the inventory icon for this item may be rotated 90 degrees clockwise, such as when placed on a player's quickbar.

Category
CostMultiplier

Gets the cost multiplier of the item.
Used in the cost calculation of magical items, see itemprops.2da, itempropdef.2da, iprp_costtable.2da and iprp_paramtable.2da.

CritMultiplier

The critical multiplier for this weapon (item).

CritThreat

Gets the chance (out of 20) that this weapon (item) will threaten a critical hit. For example, "2" would mean two chances out of 20, for a threat range of 19-20.

DefaultIcon

Gets the ResRef of the default icon that is used when the item's icon doesn't exist.

DefaultModel

Gets the default model used when the item is lying on the ground.

Description

Gets the default description for this item type. This is also used in game for items that lack specific descriptions.

DieToRoll

Gets the number of sides of the dice rolled for this weapon's (item's) damage.

EpicDevastatingCriticalFeat

Gets the character feat that allows devastating criticals to be performed with this item.

EpicOverwhelmingCriticalFeat

Gets the character feat that allows overwhelming criticals to be performed with this item.

EpicWeaponFocusFeat

Gets the character feat that provides epic weapon focus for this item.

EpicWeaponSpecializationFeat

Gets the character feat that provides epic weapon specialization for this item.

EquipmentSlots

Gets the inventory slots that this item may be equipped in.

ILRStackSize

Gets the stack size used when calculating this item's value in regards to item level restrictions.

Id

Gets the id of this base item.

ImprovedCriticalFeat

Gets the character feat that allows improved criticals to be performed with this item.

InvSoundTypeIndex

Gets the index in inventorysnds.2da indicating the sound used when this item is placed (or moved) in a character's inventory.

InventorySlotSize

Gets the size/number of inventory slots that this base item occupies.

IsContainer

Gets if this item is considered a container, and can contain other items, like a bag.

IsGenderSpecific

Gets if the item changes appearance based on the gender of the possessor.

IsMonkWeapon

Gets if this base item is a monk weapon.

IsRangedWeapon

Gets if this base item is a ranged weapon.

IsStackable

Gets if this item type can be stacked.

ItemClass

Gets the ResRef of the item's model, or the base part of the resref.
This property is dependent on ModelType. See https://nwn.wiki/display/NWN1/baseitems.2da for more info.

ItemPropertiesMax

Gets the maximum number of "cast spell" properties items of this type can be given when designed in the Toolset.

ItemPropertiesMin

Gets the minimum number of "cast spell" properties items of this type must be given when designed in the Toolset.

ItemPropertyColumnId
ItemType

Gets the associated BaseItemType for this base item.

MaxStackSize

Gets the maximum stack size for this base item.

ModelRangeMax

Gets the maximum allowed number of models of this type.

ModelRangeMin

Gets the minimum number of models of this type.

ModelType

Gets a value indicating how much the look of this item can be customized.

Name

Gets the base name of this item. Used for unidentified items.

NumDamageDice

Gets the number of dice rolled for this weapon's (item's) damage.

PreferredAttackDistance

Gets or sets the preferred attack distance for this base item.

PrerequisiteFeats

Gets a list of feats that grants proficiency with this item. A character must be proficient with an item in order to equip or use it.

QBBehaviour

Gets the behaviour when this property appears on the player's quick bar.

RotateOnGround

Gets the rotation of the item model when laid on the ground.

StartingCharges

Gets the starting number of charges this item has by default.

StoreCategory

Gets where this item can be found in a store.

StoreSortOrder

Gets a number indicating the order in which this item will be listed in a store.

WeaponFinesseMinimumCreatureSize

Gets the minimum creature size required for this weapon (item) to be considered a finesse weapon, for the WeaponFinesse feat.

WeaponFocusFeat

Gets the character feat that provides weapon focus for this item.

WeaponMaterialTypeIndex

Gets an index into weaponsounds.2da indicating what sounds this weapon (item) makes when it hits an opponent.

WeaponOfChoiceFeat

Gets the character feat that identifies this item as a weapon of choice.

WeaponSize

Gets the WeaponSize of this base item if the item is a weapon.

WeaponSpecializationFeat

Gets the character feat that provides weapon specialization for this item.

WeaponType

Gets the type/s of damage inflicted by this weapon (item).

WeaponWieldType

Gets the animation set is used when this item is wielded (equipped) in one of the weapon slots.
May also affect which slots it can work in (eg; double sided weapons take both slots, and small creatures wielding larger weapons do so two handed).

Weight

Gets the base weight of this item in pounds.

Methods

FromItemId(int)

Resolves a NwBaseItem from a base item id.

FromItemType(BaseItemType)

Resolves a NwBaseItem from a BaseItemType.

IsPartUsingEnvMap(int)

Gets if the specified part is using environment mapping.

Operators

implicit operator NwBaseItem(BaseItemType)