Difference between revisions of "GetItemValue"
Jump to navigation
Jump to search
imported>Odessa (this does not work when called in ref.func, it needs to be func ref only.added example) |
imported>Odessa (+note) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = FOSE1 | |origin = FOSE1 | ||
|summary = Returns the base value of the object. | |summary = Returns the base value of the specified object or [[calling reference]]. | ||
|name = GetItemValue | |name = GetItemValue | ||
|alias = GetValue | |alias = GetValue | ||
|returnType = int | |returnType = int | ||
|referenceType = | |referenceType = ref | ||
|arguments = | |arguments = | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = item | |Name = item | ||
|Type = | |Type = form | ||
|Optional = y | |||
}} | }} | ||
}} | }} | ||
==Example== | ==Example== | ||
<pre> | <pre> | ||
int | int iValue | ||
set iValue to GetValue Weap10mmPistol | |||
</pre> | </pre> | ||
== | ==Notes== | ||
*This function will not return a value for Ingestibles, as their value is specified internally in a separate location. | |||
[[Category:Functions_(FOSE)]] | [[Category:Functions_(FOSE)]] |
Latest revision as of 11:49, 1 September 2014
< [[::Category:Functions|Category:Functions]]
A function added by the Fallout Script Extender.
Description
Returns the base value of the specified object or calling reference.
Syntax
(int) ref.GetItemValue item:form
Or:
(int) ref.GetValue item:form
Example
int iValue set iValue to GetValue Weap10mmPistol
Notes
- This function will not return a value for Ingestibles, as their value is specified internally in a separate location.