Morrowind Mod:XGetGold

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

A function added by MWSE.

xGetGold returns the current amount of barter gold possessed by the NPC (or creature). The base gold amount is used if you haven't bartered with the NPC/creature recently.

Syntax[edit]

gold (long): ref->xGetGold

Example[edit]

long npcRef
long result

Setx npcRef to xGetRef "npc"
Setx result to npcRef->xGetGold

See Also[edit]

xIsFemale
xIsTrader
xIsTrainer
xIsProvider
xGetService
xSetService
xModService
xGetBaseGold
xSetBaseGold
xSetGold