Background for Skyrim SE
Member of the Game script
voidfunctionSetGameSettingBool(stringsetting, boolvalue)NativeGlobal

Description

Wiki Description

Modifies the value of boolean Game Settings. (This function requires SKSE)


Caveats

CK Wiki - Notes

  • Boolean settings are treated as integers and set to 0 or 1 rather than True or False.
  • There is no GetGameSettingBool.
  • Edits to Game Settings are not saved. While they'll persist across consecutive save loads during the same game session, they'll be wiped when the game closes and will revert to their normal values the next time the game is loaded. One can maintain such edits via a maintenance function, reapplying the changes when necessary.

Parameters

stringsetting

CK Wiki Description

The Game Setting to modify

boolvalue

CK Wiki Description

The desired boolean value


Examples

Game.SetGameSettingBool("bRegenNPCMagickaDuringCast", True)

Auto-Generated Example

string myString__setting
bool myBool__value

Game.SetGameSettingBool(myString__setting, myBool__value)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.