Inventory Function Category

Functions that deal with a character's inventory.



Functions

NameBrief Description
ActionEquipItemPuts an item in possesion into an inventory slot.
ActionEquipMostEffectiveArmorCauses the calling creature to equip the best armor in its inventory.
ActionGiveItemGives a specified item to a target creature.
ActionPickUpItemCauses subject to run to an item and place it in inventory.
ActionPutDownItemCauses the subject to place an item on the ground at it's feet.
ActionTakeItemTakes an item from an object
ActionUnequipItemMakes the executing creature unequip an object and place it in their inventory.
CheckPartyForItemCheck party for possession of an item.
CopyObjectDuplicates the object specified.
CreateItemOnObjectCreate a specific item in an objects inventory
GetBackpackMatchDetermines if the PC carries the proper items to create a new item.
GetDroppableFlagDetermines if an item can be dropped.
GetFirstItemInInventoryDetermines the first item in an object's inventory.
GetHasInventoryDetermine whether an object has an inventory.
GetInventoryDisturbItemReturns the disturbing item in an inventory OnDisturbed event.
GetInventoryDisturbTypeDetermines the type of disturbance of an inventory.
GetIsItemPossessedByPartyCheck to see if any character in the party has the specified item.
GetItemInSlotRetrieve the item in a given inventory slot of a creature.
GetItemPossessedByGet an item with a specific tag in a given creature or placeable's inventory.
GetItemPossessedByPartyCheck to see if the specified item belongs to anyone in the party.
GetItemPossessorGet the creature or object who possesses a specified item.
GetItemStackSizeDetermines the number of stacked items contained within an inventory object.
GetLastDisturbedDetermine who last disturbed the inventory of an object or creature.
GetLastOpenerGets the creature that last opened or destroyed the container calling this script.
GetLootableReturns the lootable state of a creature
GetModuleItemAcquiredGet the item acquired on an OnAcquiredItem event.
GetModuleItemAcquiredByRetrieves an object that acquired a module item.
GetModuleItemAcquiredFromGet the last owner of the item acquired on an OnAcquiredItem event.
GetModuleItemAcquiredStackSizeDetermines the stack size of an item belonging to a module that was just acquired.
GetModuleItemLostGet the object that was dropped on an OnUnAcquiredItem event.
GetModuleItemLostByGet the creature that lost the item on an OnUnAcquiredItem event.
GetNextItemInInventoryDetermines the first item in an object's inventory.
GetNumItemsGets the number of the item that the target carries.
GetNumStackedItemsDetermines the number of stacked items contained within an inventory object.
GetPCItemLastEquippedReturns the last equipped item
GetPCItemLastEquippedByReturns the PC that last equipped an item
GetPCItemLastUnequippedReturns the last unequipped item
GetPCItemLastUnequippedByGet the PC who last unequipped an item
GetPickpocketableFlagDetermines if the item can be pickpocketed.
GetStolenFlagDetermine if an item has been stolen.
GetWeightRetrieves the weight of an individual item, or the weight of all objects carried by a single creature.
GiveNumItemsGives the target the number of items specified.
HasAnyItemOfBaseTypeCycles 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.
HasGoldDetermines if a player has more than a certain amount of gold on them.
HasItemDetermines if a creature possesses an item.
LootInventoryStrip everything droppable in the regular, non-equipped, inventory.
LootInventorySlotsLoot all the droppable items from the inventory slots of the victim into the inventory of the corpse object.
OpenInventoryOpens a player's inventory panel.
RemoveItemFromPartyRemoves the specified item from whichever member of the party has it.
SetItemChargesSets the number of charges left on a given item.
SetItemStackSizeSet the number of items in a given stack.
SetLootableSets whether a creature leaves a lootable corpse upon death
SetPickpocketableFlagSets the pickpocketable flag on the item.
SetStolenFlagSet whether the item is stolen
SKIN_SupportEquipSkinForces a creature to equip a skin item in its creature armor inventory slot.
SKIN_SupportGetSkinRetrieves a creature's skin item or creates a new one and forces an equip if the creature does not already have one.
StripAllPersonalItemsFromEveryoneRemoves henchmen 'hired' items for use in the original campaign.
TakeArtifactItemRemoves the item returned by GetArtifactItem from the player's inventory.
TakeComplexItemRemoves the plot related item from a player's inventory.
TakeFetchItemRemoves the plot related item from a player's inventory.
TakeGoldRemoves a given amount of gold from the targets inventory, and optionally removes it from the game.
TakeNumItemsTakes the number of items specified from the target.
TakeStoryItemRemoves the plot related item from a player's inventory.
TalentBuffSelfUsed for Potions of Enhancement and Protection

See Also

Function Categories



author: NWN Lexicon Group, editor: Mistress, contributor: Axe Murderer