Open main menu

UESPWiki β

Morrowind Mod:XSetGold

< 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.)

SyntaxEdit

ref->xSetGold gold (long)

ExampleEdit

long npcRef
long newValue

Setx npcRef to xGetRef "npc"
Set newValue to 5000

npcRef->xSetGold newValue

See AlsoEdit