Difference between revisions of "GetGoldValue - Form"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Rhavlovick
m (1 revision: Clobber re-import by Henning)
 
imported>Terra Nova2
m (Returns only the base value.)
 
(3 intermediate revisions by 2 users not shown)
Line 22: Line 22:
endIf
endIf
</source>
</source>
 
== Notes ==
* This doesn't return the Gold value of enchanted items. Will return the base value instead.
== See Also ==
== See Also ==
*[[Form Script]]
*[[Form Script]]
*[[SetGoldValue_-_Form|SetGoldValue - Form]]

Latest revision as of 14:55, 4 February 2016

Member of: Form Script

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.

Syntax[edit | edit source]

int Function GetGoldValue() native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

The gold value of this form, or -1 if it doesn't have a value.

Examples[edit | edit source]

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

Notes[edit | edit source]

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

See Also[edit | edit source]