ItemPropertyCustom(int, int, int, int)

From NWN Lexicon
Revision as of 21:24, 13 March 2021 by Jasperre (talk | contribs) (Created page with "{{DISPLAYTITLE:ItemPropertyCustom(int, int, int, int)}}__NOTOC__ Constructs an item property given explicit parameters. <nwscript> itemproperty ItemPropertyCustom( int nTy...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Constructs an item property given explicit parameters.

itemproperty ItemPropertyCustom(
    int nType,
    int nSubType=-1,
    int nCostTableValue=-1,
    int nParam1Value=-1
);

Parameters

nType
nSubType
nCostTableValue
nParam1Value

Description

Constructs a custom itemproperty given all the parameters explicitly.

This function can be used in place of all the other ItemPropertyXxx constructors

Use GetItemPropertyType, GetItemPropertySubType, GetItemPropertyCostTableValue, GetItemPropertyParam1Value to see the values for a given itemproperty.


Remarks

The function Bioware should have made instead of 50+ ItemPropertyXxx functions. This allows constructed item properties from integers, copying item properties much more easily from item to item and storing them into databases or locals for replication later.


Version

This function was added in 1.83.8193.21 of NWN:EE.


Example

 

See Also

functions:

Category:Item_Creation_Functinos

constants:

A lot of them - see remarks.