Difference between revisions of "SetGameSettingInt - Game"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>JustinOther
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Game Script Modifies the value of integer Game Settings. (This function r...")
 
imported>JustinOther
m (→‎See Also: Removed GetGameSettingBool.)
Line 29: Line 29:
*[[Game Script]]
*[[Game Script]]
*[[Settings|Game Settings]]
*[[Settings|Game Settings]]
*[[GetGameSettingBool - Game]]
*[[GetGameSettingFloat - Game]]
*[[GetGameSettingFloat - Game]]
*[[SetGameSettingFloat - Game]]
*[[SetGameSettingFloat - Game]]

Revision as of 04:40, 6 September 2012

SKSE Member of: Game Script

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

Syntax

Function SetGameSettingInt(String setting, Int value) Global Native

Parameters

  • Setting: The Game Setting to modify
  • Value: The desired integer value

Return Value

None

Examples

Game.SetGameSettingInt("iMaxPlayerRunes", 3)

Notes

  • 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.

See Also