Open main menu

UESPWiki β

Morrowind Mod:XSetBaseGold

< Mod / Morrowind: Morrowind Mod: MWSE

A function added by MWSE.

xSetBaseGold changes the base amount of barter gold assigned to the NPC (or creature). Unfortunately this change won't be saved with the save game so you will need to reset it after each game reload or after the "72-hour bug" affects the merchant.

SyntaxEdit

ref->xSetBaseGold gold (long)

ExampleEdit

long npcRef
long newValue

Setx npcRef to xGetRef "NPC_ID"
Set newValue to 5000

npcRef->xSetBaseGold newValue

See AlsoEdit