Morrowind Mod:XSetGold
The UESPWiki – Your source for The Elder Scrolls since 1995
< Mod / Morrowind: Morrowind Mod: MWSE
A function added by MWSE.
xSetGold changes the current amount of barter gold possessed by the NPC (or creature). This value is stored in save game files so it will survive a game reload. Setting this will have no effect if you haven't recently bartered with the NPC/creature. (But setting both this and the base gold amount at the same time will likely do what you want.)
Syntax[edit]
ref->xSetGold gold (long)
Example[edit]
long npcRef long newValue Setx npcRef to xGetRef "npc" Set newValue to 5000 npcRef->xSetGold newValue
See Also[edit]
xIsFemale
xIsTrader
xIsTrainer
xIsProvider
xGetService
xSetService
xModService
xGetBaseGold
xGetGold
xSetBaseGold