ItemPropertyAdditional(int)

From NWN Lexicon
Jump to navigationJump to search

Returns a generic additional itemproperty.

itemproperty ItemPropertyAdditional(
    int nAdditionalProperty
);

Parameters

nAdditionalProperty
The itemproperty to create.

Description

Creates and returns a generic additional itemproperty. You need to specify the additional property. The only additional properties currently defined are Unknown and Cursed.

Remarks

IP_CONST_ADDITIONAL_* references the iprp_addcost.2da file (and so is the cost table value for the item property).  This file currently sets all costs to 0.  If you want the additional property to affect the cost of the item then you need to modify the cost in the iprp_addcost.2da and place the modified file in your override folder.

The cost value (which is also the IP_CONST_ADDITIONAL_* constant) can also be used to look up a string reference (strRef) for the name of the quality type in iprp_additional.2da.

Known Bugs:

The previous bug involving iprp_costtable being incomplete (thus GetItemPropertyCostTable returning an invalid line) no longer applies.

Version

1.69

See Also

constants:

ITEM_PROPERTY_*

functions:

IPSafeAddItemProperty



author: Mistress, contributor: Cereborn