X2 inc itemprop
From NWN Lexicon
[edit] x2_inc_itemprop
Library for item property and item modification specific code. If you are looking for anything specific to item properties, your chances are good to find it in here.
[edit] Constants
| Name | Value | Brief Description |
|---|---|---|
| X2_IP_ADDRPOP_2DA | des_crft_props | 2da for the AddProperty ItemProperty. |
| X2_IP_ADDPROP_POLICY_KEEP_EXISTING | 1 | Policy constant for IPSafeAddItemProperty(). |
| X2_IP_ADDPROP_POLICY_IGNORE_EXISTING | 2 | Policy constant for IPSafeAddItemProperty(). |
| X2_IP_ADDPROP_POLICY_REPLACE_EXISTING | 0 | Policy constant for IPSafeAddItemProperty(). |
| X2_IP_ARMORAPPEARANCE_2DA | des_crft_appear | 2da for armor appearance. |
| X2_IP_ARMORPARTS_2DA | des_crft_aparts | 2da for armor parts. |
| X2_IP_ARMORTYPE_NEXT | 0 | Used with the armor modification system. |
| X2_IP_ARMORTYPE_PREV | 1 | Used with the armor modification system. |
| X2_IP_ARMORTYPE_RANDOM | 2 | Used with the armor modification system. |
| XP_IP_ITEMMODCONVERSATION_CTOKENBASE | 12220 | Base custom token for item modification conversations. |
| X2_IP_ITEMMODCONVERSATION_MODE_CRAFT | 1 | Base custom token for item modification conversations. |
| X2_IP_ITEMMODCONVERSATION_MODE_TAILOR | 0 | Base custom token for item modification conversations. |
| X2_IP_MAX_ITEM_PROPERTIES | 8 | Number of maximum item properties allowed on most items. |
| X2_IP_POISONWEAPON_2DA | des_crft_poison | 2da for the Poison Weapon Itemproperty. |
| X2_IP_WEAPONTYPE_NEXT | 0 | Used with the armor modification system. |
| X2_IP_WEAPONTYPE_PREV | 1 | Used with the armor modification system. |
| X2_IP_WEAPONTYPE_RANDOM | 2 | Used with the armor modification system. |
| X2_IP_WORK_CONTAINER_TAG | x2_plc_ipbox | The tag of the ip work container, a placeable which has to be set into each module that is using any of the crafting functions. |
[edit] Functions
| Name | Brief Description |
|---|---|
| Internal function. Copies all permanent item properties from one object to another. | |
| Internal function. Copies an armor object and changes its appearance. | |
| Internal function. Gives a creature all available proficiency feats. | |
| Changes the color of an armor. | |
| Internal function. Returns an armor appearance type for the specified armor model. | |
| Converts a number into a damage bonus itemproperty constant. | |
| Converts a number to a damage power constant | |
| Internal function. Returns whether an item has an itemproperty. | |
| Returns whether a character has an item with a certain itemproperty type equipped. | |
| Internal function. Returns whether an item has any usage limitations. | |
| Returns a spell's corresponding itemproperty constant. | |
| Returns the container used for item property and appearance modifications in the module | |
| Checks if an item is a bludgeoning weapon. | |
| Returns whether an item has the intelligent itemproperty. | |
| Checks if an item can be equipped. | |
| Checks if an item is a melee weapon. | |
| Checks if an item is a projectile. | |
| Checks if an item is a ranged weapon. | |
| Checks if an item has a specified onhit subtype itemproperty. | |
| Checks if an item has a matching itemproperty. | |
| Returns an itemproperty. | |
| Checks the sequencer property of an item. | |
| Copies and modifies an armor and returns it as an object. | |
| Internal function. Returns a copy of a weapon with the appearance of one weapon part modified. | |
| Returns the next valid appearance type for an armor. | |
| Returns the number of armor part variations for the specified part. Does not work. Function is prototyped but not implemented. | |
| Internal function. Returns the number of possible appearance types for the specified armor model (armor part). | |
| Returns the number of item properties present on an item. | |
| Returns the armor's previous valid appearance type for the specified part. | |
| Returns a random valid armor appearance type of the appropriate part. | |
| Internal function. Returns the equipped armor or shield of a spell target. | |
| Internal function. Returns the equipped melee weapon of a spell target. | |
| Internal function. Returns a weapon appearance type for the specified weapon part. | |
| Returns a weapon's enhancement bonus. | |
| Removes all itemproperties from an item. | |
| Removes itemproperties of a given type, duration, and subtype from an item. | |
| Safely add an itemproperty to an item. | |
| Sets an enhancement bonus on a weapon. | |
| Upgrades a weapon's enhancement bonus. | |
| Copies itemproperties from one item to another. |
author: Charles Feduke, editors: Mistress, Kolyana, contributor: motu99