In my single player module I've been storing variables on an item with the tag Storage.
Everything works in the module, setting variables to the item, and calling them from the item all work, but these variables get lost after starting a new game with a previous character version.
For instance, I make a generic floor trigger that does
void main()
{
object oPC = GetEnteringObject();
object oStorage = GetItemPossessedBy(oPC, "Storage");
if(GetLocalInt(oStorage, "Is1") != 1){
SetLocalInt(oStorage, "Is1", 1);
}
}
And a separate trigger that
void main()
{
object oPC = GetEnteringObject();
object oStorage = GetItemPossessedBy(oPC, "Storage");
if(GetLocalInt(oStorage, "Is1") == 1){
FloatingTextStringOnCreature("dfgdsgdsgdgdgdsgdgdg", oPC);
}
}
And they both work, but if I go save character, and then new game and reload the module with the saved character the variables are all reset.
Whats going on here?