Difference between revisions of "GetINIString - Utility"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>JustinOther
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' UI Script {{SKSEFunction|1.04.02}} '''Member of:''' Utility Script Gets a string ...")
 
imported>JustinOther
m (→‎Examples: Poofread)
 
Line 25: Line 25:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
Utility.GetINIBool("sLanguage:General") ; Get the value of "sLanguage" in the "[General]" section
Utility.GetINIString("sLanguage:General") ; Get the value of "sLanguage" in the "[General]" section
</source>
</source>



Latest revision as of 09:41, 10 November 2012

SKSE Member of: UI Script

Minimum required SKSE Version: 1.04.02 Member of: Utility Script

Gets a string INI setting's value.

Syntax[edit | edit source]

Function GetINIBool(String ini) Native Global

Parameters[edit | edit source]

ini: The ini setting to get

Return Value[edit | edit source]

Returns the value of the specified string INI setting.

Notes[edit | edit source]

This works for Bethesda created settings only, whether in Skyrim.ini, SkyrimPrefs.ini, or YourLoadedPlugin.ini. Note that, in that order, each INI will override the setting(s) of the previous INI file(s).

Examples[edit | edit source]

Utility.GetINIString("sLanguage:General") ; Get the value of "sLanguage" in the "[General]" section

See Also[edit | edit source]