SetGoldValue - Form

From Creation Kit
Jump to: navigation, search

SKSE Member of: Form Script

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

Syntax

Function SetGoldValue(int value) native

Parameters

  • value: the new value of the form

Return Value

None

Examples

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

Notes

  • 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