Background for Skyrim SE
Member of the Form script
intfunctionGetGoldValue()Native

Description

Wiki Description

Returns the value of this form in gold. If called on a form that doesn't have a value (like a quest), it will return -1.

Documentation Comment

Obtains this form's value in gold. Will return -1 if the form doesn't have any value (like a quest)


Caveats

CK Wiki - Notes

  • This doesn't return the Gold value of enchanted items. Will return the base value instead.

Examples

if jewel.GetGoldValue() > 100
  Debug.Trace("Wow, that's one pricy gem!")
endIf

Auto-Generated Example

int returnedValue = myForm__toCallFunctionOn.GetGoldValue()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.