Difference between revisions of "GetItemValue"

From GECK

m (Robot: Automated text replacement (-'''.*'''\r\n +))
(this does not work when called in ref.func, it needs to be func ref only.added example)
Line 1: Line 1:
 
{{Function
 
{{Function
 
  |origin = FOSE1
 
  |origin = FOSE1
  |summary = Returns the base value of the object or calling reference
+
  |summary = Returns the base value of the object.
 
  |name = GetItemValue
 
  |name = GetItemValue
 
  |alias = GetValue
 
  |alias = GetValue
 
  |returnType = int
 
  |returnType = int
  |referenceType = ref
+
  |referenceType =
 
  |arguments =  
 
  |arguments =  
 
   {{FunctionArgument
 
   {{FunctionArgument
 
   |Name = item
 
   |Name = item
 
   |Type = ref
 
   |Type = ref
  |Optional = optional
 
 
   }}
 
   }}
 
}}
 
}}
 +
==Example==
 +
<pre>
 +
int iTotal
 +
ref rItem
 +
 +
let rItem := SomeItem
 +
 +
let iTotal += (GetValue rItem)
 +
 +
; * replace let with 'set .. to ..' if not using NVSE 4.
 +
</pre>
 +
==See Also==
 +
[[Let]]
 
[[Category:Functions_(FOSE)]]
 
[[Category:Functions_(FOSE)]]

Revision as of 05:55, 31 May 2014

A function added by the Fallout Script Extender.

Description

Returns the base value of the object.

Syntax

(int) GetItemValue item:ref 

Or:

(int) GetValue item:ref

Example

int iTotal
ref rItem

let rItem := SomeItem

let iTotal += (GetValue rItem)

; * replace let with 'set .. to ..' if not using NVSE 4.

See Also

Let

Personal tools