Jump to content

Session data and GameSettings


vivanto

Recommended Posts

Hello,

 

I need to store and access data in the game session-scope, which means it needs to be independent of save files, so can't use script variables. For example, an event occurs that I store in a variable, then a savegame gets loaded but I still need to know that the event occurred.

 

For this, I'm using GameSetting variables, which work fine, except for one problem. I can't seem to be able to access custom-created game settings. I create a new one in Creation Kit, save the esp, then try to read, modify and re-read the modified value with a script, but it always returns 0 values (even if the default value is different).

 

Currently I'm using garbage game setting variables, like fDiffMultX.*, but I can never know if another mod uses them for the same purpose, so a custom one would be preferable. I tried with both Int and Float types with Get/SetGameSettingInt/Float.

 

Anyone know why I can't use my own game-setting variables, or if there is a better alternative than that?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...