Morrowind Mod:XGetValue

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

A function added by MWSE.

xGetValue returns the gold value of the object. Objects that can't be sold return 0.

In v0.9.4a it does not work for ammo and repair items. This is fixed in the MWSE update released by Merzasphor.

Syntax[edit]

value (long): ref->xGetValue

Example[edit]

long target
long value

setx value to target->xGetValue

See Also[edit]

xGetOwner
xGetWeight
xGetEncumb
xGetQuality
xGetCondition
xGetMaxCondition
xGetCharge
xGetMaxCharge
xSetValue
xSetWeight
xSetQuality
xSetCondition
xSetMaxCondition
xSetCharge
xSetMaxCharge