Table of Contents

Method Custom

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

Custom(int, int, int, int)

Creates a custom item property by specifying raw table indices.

public static ItemProperty Custom(int type, int subType = -1, int costTableValue = -1, int param1Value = -1)

Parameters

type int

ItemPropertyTable row index.

subType int

ItemPropertySubTypeTable row index, or -1.

costTableValue int

ItemPropertyCostTable row index, or -1.

param1Value int

ItemPropertyParamTable row index, or -1.

Returns

ItemProperty

The created item property.

Custom(ItemPropertyTableEntry, ItemPropertySubTypeTableEntry?, ItemPropertyCostTableEntry?, ItemPropertyParamTableEntry?)

Creates a custom item property using strongly typed table entries.

public static ItemProperty Custom(ItemPropertyTableEntry property, ItemPropertySubTypeTableEntry? subType = null, ItemPropertyCostTableEntry? costTableValue = null, ItemPropertyParamTableEntry? paramTableValue = null)

Parameters

property ItemPropertyTableEntry

The base property entry.

subType ItemPropertySubTypeTableEntry

Optional subtype entry.

costTableValue ItemPropertyCostTableEntry

Optional cost table entry.

paramTableValue ItemPropertyParamTableEntry

Optional parameter table entry.

Returns

ItemProperty

The created item property.