Editing SetINIInt - Utility

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus Debug Only Functions]]
'''Member of:''' [[Utility Script]]
'''Member of:''' [[Utility Script]]


Sets an integer value in the Fallout 4 [[Initialization File]]s (<code>.ini</code>).
Sets an integer INI setting's value.


== Syntax ==
== Syntax ==
Line 10: Line 12:


== Parameters ==
== Parameters ==
*ini: The <code>.ini</code> setting name and section. For example, <code>iSettingName:SectionName</code>.
*ini: The ini setting to set
*value: The integer value to assign the setting.
*value: The value to give it


== Return Value ==
== Return Value ==
Line 23: Line 25:


== Notes ==
== Notes ==
This function can only change the values of pre-defined ini settings in Fallout4.ini and Fallout4Prefs.ini and only during the current game session.  
This function can only change the values of pre-defined ini settings in Fallout4.ini and Fallout4Prefs.ini and only during the current game session. It cannot create new settings and does not save them to an ini file. There is also no guarantee the game will ever read the value again past initial load, so changing it may have no effect.
It cannot create new settings and does not save them to an ini file.  
There is also no guarantee the game will ever read the value again past initial load, so changing it may have no effect.


== See Also ==
== See Also ==
Line 32: Line 32:
*[[SetINIFloat - Utility]]
*[[SetINIFloat - Utility]]
*[[SetINIString - Utility]]
*[[SetINIString - Utility]]
*[[Initialization File]]
*[[Papyrus Naming Conventions]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Papyrus Debug Only Functions]]

Please note that all contributions to the Fallout4 CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see FalloutCK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)