SetGoldValue - Form

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Form Script

Sets the value of this form in gold. (This function requires SKSE)

Syntax[edit | edit source]

Function SetGoldValue(int value) native

Parameters[edit | edit source]

  • value: the new value of the form

Return Value[edit | edit source]

None

Examples[edit | edit source]

MyWeapon.SetGoldValue(MyWeapon.GetGoldValue() * 2)
Debug.Trace("We just doubled the value of our weapon!")

Notes[edit | edit source]

  • Does not work on forms that do not have value (eg Quests)
  • This function is performed on a base Form, meaning changes will not save.

See Also[edit | edit source]