ItemPropertyAdditional(int)

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:

GetItemPropertyCostTable returns 30 for this property, but there is no entry for 30 in iprp_costtable.2da (the last entry is 27).  You can add the entry yourself (be sure to add lines 28 and 29 as well) and place your modified iprp_costtable.2da in your override folder; or you can have any script that tries to find the cost value associated with the quality type indicated catch this value and use the correct cost table directly.  As noted above, the cost table for the additional property is iprp_addcost.2da.


Version

1.69

See Also

constants:  IP_CONST_ADDITIONAL_* | ITEM_PROPERTY_*
functions:  AddItemProperty | IPSafeAddItemProperty
categories:  Item Creation Functions


author: Mistress, contributor: Cereborn