Difference between revisions of "SetNumericGameSetting"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
imported>Haama
(→‎Notes: Added GGL link)
 
(9 intermediate revisions by 4 users not shown)
Line 6: Line 6:
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==
  SetNumericGameSetting iMagicMaxSummonedCreatureTypes 10
  SetNumericGameSetting iMagicMaxSummonedCreatureTypes 10
  SetNumericGameSetting iMagicMaxSummonedCreatureTypes Variable
  SetNumericGameSetting iMagicMaxSummonedCreatureTypes Variable
Line 13: Line 13:
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 18: Line 19:


*Changes made to game settings with this function will not be included in the savegame file. This has two consequences:
*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.  
*#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 (see [[GetGameLoaded]]).  
**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==
[[Con_SetGameSetting]]
* [[:Category: Settings|Game Settings]]
 
* [[Con_SetGameSetting]]
[[GetGameSetting]]
* [[GetGameSetting]]
* [[GetNumericINISetting]]
* [[SetNumericINISetting]]


[[Category: OBSE Functions|Setgamesetting]]
[[Category:Functions]]
[[Category: OBSE Console Functions|Setgamesetting]]
[[Category:Functions (OBSE)]]
[[Category:Miscellaneous Functions]]
[[Category:Miscellaneous Functions (OBSE)]]

Latest revision as of 19:10, 26 April 2008

A command for Oblivion Script Extender

Syntax:

SetNumericGameSetting GMST value

Sets the desired game setting to the desired value while in game.


Example[edit | edit source]

SetNumericGameSetting iMagicMaxSummonedCreatureTypes 10
SetNumericGameSetting iMagicMaxSummonedCreatureTypes Variable

Sets the limit on the number of summonable creatures to 10.


Notes[edit | edit source]

  • This function is identical to Con_SetGameSetting with the difference that it accepts variables as well as numeric values.
  • Changes made to game settings with this function will not be included in the savegame file. This has two consequences:
    1. 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 (see GetGameLoaded).
    2. 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.


See Also[edit | edit source]