Difference between revisions of "SetNumericGameSetting"
Jump to navigation
Jump to search
imported>JOG |
imported>JOG (→Notes) |
||
Line 17: | Line 17: | ||
*This function is identical to [[Con_SetGameSetting]] with the difference that it accepts variables as well as numeric values. | *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 | *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. | |||
==See Also== | ==See Also== |
Revision as of 06:12, 1 September 2006
A command for Oblivion Script Extender
Syntax:
SetNumericGameSetting GMST value
Sets the desired game setting to the desired value while in game.
Example
SetNumericGameSetting iMagicMaxSummonedCreatureTypes 10 SetNumericGameSetting iMagicMaxSummonedCreatureTypes Variable
Sets the limit on the number of summonable creatures to 10.
Notes
- 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.
- 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.