Table of Contents

Method ActionEquipItem

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

ActionEquipItem(NwItem, InventorySlot)

Instructs this creature to equip the specified item into the given inventory slot.
Note: If the creature already has an item equipped in the slot specified, it will be unequipped automatically by the call to EquipItem, and dropped if the creature lacks inventory space.
In order for EquipItem to succeed the creature must be able to equip the item normally. This means that:

  1. The item is in the creature's inventory.
  2. The item must already be identified (if magical).
  3. The creature has the level required to equip the item (if magical and ILR is on).
  4. The creature possesses the required feats to equip the item (such as weapon proficiencies).
public Task ActionEquipItem(NwItem item, InventorySlot slot)

Parameters

item NwItem
slot InventorySlot

Returns

Task