Difference between revisions of "IniReadRef"
Jump to navigation
Jump to search
imported>Speedo (New page: {{Beta}} A command for Pluggy. '''Syntax:''' <pre> (Value:ref) IniReadInt FileStringID:long SectionStringID:long KeyStringID:long DefaultValu...) |
imported>Speedo |
||
Line 13: | Line 13: | ||
*DefaultValue '''must''' be a local ref variable. | *DefaultValue '''must''' be a local ref variable. | ||
*If the Key is not found, DefaultValue is returned. | *If the Key is not found or is invalid, DefaultValue is returned. | ||
*References must be stored as [[FormID|FormIDs]] to be read with '''IniReadRef'''. | |||
[[Category: Functions (Pluggy)]] | [[Category: Functions (Pluggy)]] | ||
[[Category: File Functions (Pluggy)]] | [[Category: File Functions (Pluggy)]] |
Revision as of 21:12, 26 February 2008
Beta Function
This function has not been fully tested yet, and is not ready to be used in a released mod. It may not have the same function in later versions, may require the script to be recompiled, or simply may be removed. Use for testing purposes only until the author of the function says otherwise.
A command for Pluggy.
Syntax:
(Value:ref) IniReadInt 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.