Background for Skyrim SE
Member of the Utility script
voidfunctionSetINIString(stringini, stringvalue)NativeGlobal

Description

Wiki Description

Sets a string INI setting's value.


Caveats

CK Wiki - Notes

This function can only change the values of pre-defined ini settings in Skyrim.ini and SkyrimPrefs.ini and only during the current game session. It cannot create new settings and does not save them to an ini file.


Parameters

stringini

CK Wiki Description

The ini setting to set

stringvalue

CK Wiki Description

The value to give it


Examples

; Set the "sRandomSetting" in the "[CoolSettings]" section to "winner"
Utility.SetINIString("sRandomSetting:CoolSettings", "winner")

Auto-Generated Example

string myString__ini
string myString__value

Utility.SetINIString(myString__ini, myString__value)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.