Check out our 2024 Retrospective for a look back at events that shaped the wiki during 2024.

Morrowind Mod:XGetGold

The UESPWiki – Your source for The Elder Scrolls since 1995

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