Difference between revisions of "SetNumericGameSetting"
Jump to navigation
Jump to search
imported>DragoonWraith (See Also: Game Settings) |
imported>Haama (→Notes: Added GGL link) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
<BR> | <BR> | ||
==Example== | ==Example== | ||
SetNumericGameSetting iMagicMaxSummonedCreatureTypes 10 | SetNumericGameSetting iMagicMaxSummonedCreatureTypes 10 | ||
SetNumericGameSetting iMagicMaxSummonedCreatureTypes Variable | SetNumericGameSetting iMagicMaxSummonedCreatureTypes Variable | ||
Line 20: | 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. | ||
Line 26: | Line 25: | ||
==See Also== | ==See Also== | ||
* [[Category: Settings|Game Settings]] | * [[:Category: Settings|Game Settings]] | ||
* [[Con_SetGameSetting]] | * [[Con_SetGameSetting]] | ||
* [[GetGameSetting]] | * [[GetGameSetting]] | ||
* [[GetNumericINISetting]] | |||
* [[SetNumericINISetting]] | |||
[[Category: OBSE Functions | [[Category:Functions]] | ||
[[Category: OBSE | [[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:
- 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.