Difference between revisions of "Con SetGameSetting"
Jump to navigation
Jump to search
imported>JOG m (→Notes) |
imported>JOG (Layout) |
||
Line 1: | Line 1: | ||
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | ||
<BR> | |||
'''Syntax:''' | '''Syntax:''' | ||
con_SetGameSetting GMST value | con_SetGameSetting GMST value | ||
Line 6: | Line 7: | ||
Sets the desired game setting to the desired value while in game. | Sets the desired game setting to the desired value while in game. | ||
<BR> | |||
==Example== | ==Example== | ||
Line 12: | Line 14: | ||
Sets the limit on the number of summonable creatures to 10. | Sets the limit on the number of summonable creatures to 10. | ||
<BR> | |||
==Notes== | ==Notes== | ||
Line 26: | Line 29: | ||
**When you change a game setting, and then reload a game, the change will still be active. The game setting will be only reset when you exit and restart Oblivion, or when you do it in your script after reload. | **When you change a game setting, and then reload a game, the change will still be active. The game setting will be only reset when you exit and restart Oblivion, or when you do it in your script after reload. | ||
<BR> | |||
==See Also== | ==See Also== | ||
[[SetNumericGameSetting]] | [[SetNumericGameSetting]] |
Revision as of 06:13, 1 September 2006
A command for Oblivion Script Extender
Syntax:
con_SetGameSetting GMST value
Sets the desired game setting to the desired value while in game.
Example
con_SetGameSetting iMagicMaxSummonedCreatureTypes 10
Sets the limit on the number of summonable creatures to 10.
Notes
- Due to limitations of the Wiki software, the title of this article, and links to it, cannot display it correctly - there is an underscore (_) in the function's name.
- This function is identical to the SetGameSetting Console Function, and will behave as if you had called that function from the console.
- This function was not designed to be run from scripts, and so may not work as expected.
- Con_SetGameSetting does not work correct with variables as parameters. When you need to use variables, use SetNumericGameSetting instead.
- Changes made to game settings with this function will not be included in the savegame file. This has two consequences:
- If you want to make a permanent change to a game setting you will need code to update the value after a savegame is reloaded.
- When you change a game setting, and then reload a game, the change will still be active. The game setting will be only reset when you exit and restart Oblivion, or when you do it in your script after reload.