SetGoldValue - Form

SKSE Member of: Form Script

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

SyntaxEdit

Function SetGoldValue(int value) native

ParametersEdit

  • value: the new value of the form

Return ValueEdit

None

ExamplesEdit

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

NotesEdit

  • 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 AlsoEdit