nwn.nwscript.extensions

Useful functions that are not part of nwscript

Members

Functions

calcItemCost
uint calcItemCost(ST oItem)

Calculate an item cost, without taking into account its additional cost

getItemModifyCost
int getItemModifyCost(ST oItem)

Returns the item additional cost as defined in the blueprint, multiplied by the number of stacked items

toGameString
string toGameString(NWItemproperty ip)

Converts an itemproperty into its in-game description

toNWFloat
NWFloat toNWFloat(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
toNWInt
NWInt toNWInt(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
toNWItemproperty
NWItemproperty toNWItemproperty(ST node)
Undocumented in source. Be warned that the author may not have intended to support it.
toPrettyString
string toPrettyString(NWItemproperty ip)
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

ImportGffLib
template ImportGffLib(T)

Imports either nwn.gff or nwn.fastgff, that provide T

isGffStruct
template isGffStruct(T)

Checks if T is either a nwn.gff.GffStruct or a nwn.fastgff.GffStruct

Meta