Difference between revisions of "GetGoldValue - Form"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Fg109
imported>PurpleLunchbox
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus]]
'''Member of:''' [[Form Script]]
'''SKSE 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.
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. (This function requires SKSE)


== Syntax ==
== Syntax ==

Revision as of 02:48, 10 May 2012

SKSE 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. (This function requires SKSE)

Syntax

int Function GetGoldValue() native

Parameters

None

Return Value

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

Examples

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

See Also