Difference between revisions of "IniReadRef"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Speedo
(Graduating from beta)
imported>Quetzilla
m (typo)
 
Line 3: Line 3:
'''Syntax:'''
'''Syntax:'''
<pre>
<pre>
(Value:ref) IniReadInt FileStringID:long SectionStringID:long KeyStringID:long
(Value:ref) IniReadRef FileStringID:long SectionStringID:long KeyStringID:long
                       DefaultValue:ref
                       DefaultValue:ref
</pre>
</pre>

Latest revision as of 10:55, 11 August 2008

A command for Pluggy.

Syntax:

(Value:ref) IniReadRef FileStringID:long SectionStringID:long KeyStringID:long
                       DefaultValue:ref

Note: All arguments should be on the same line.

Finds the specified Key in an Ini file and returns its Value as a reference.

  • DefaultValue must be a local ref variable.
  • If the Key is not found or is invalid, DefaultValue is returned.
  • References must be stored as FormIDs to be read with IniReadRef.

See Also[edit | edit source]