lgpmichael Posted April 24, 2011 Share Posted April 24, 2011 I am wondering if I have hit upon a bug. I have a quest where the script variables are not being kept across a save. I can save, reload, and all is well, but if I save, exit the game, and then restart and reload the save, all of the script variables reset to 0 I have never seen this before - and it isn't that some initialiser I have made elsewhere is resetting variables, as I added in a completely new variable where its only activity ever is to be set to a value, which it is, but on reload, nope, back to 0 As extra debug, when this variable is set, I do the same with another variable in a different quest script (part of the same mod), and THAT variable is saved properly as expected. So, is there some flag somewhere that says 'this quest/script is non-persistent'? I have looked in TES4Edit and don't see anything incriminating, and I have never seen anything quite like this before. I am guessing that somewhere something has just got a bit twisted and it is unfixable without recreating the quest. I'd rather not do that as it will probably take me many hours to resolve the cross-script dependencies and to get everything back in working order, so I am hoping there is some checkbox I have missed that forces a script to act like this - but I haven't seen anything in my searching... Link to comment Share on other sites More sharing options...
Maskar Posted April 24, 2011 Share Posted April 24, 2011 (edited) That's a rather strange issue indeed. What you could try is create another quest and add the script. Then delete the old quest, reload the mod and then rename the new quest to that of the old one. That way the quest id is different, but the quest name is still the same, so you can still use the same scripts, etc. You might have to re-save all the scripts linking to the quest though. Edited April 24, 2011 by Maskar Link to comment Share on other sites More sharing options...
Pronam Posted April 24, 2011 Share Posted April 24, 2011 There's no such setting, could you post the scripts? Link to comment Share on other sites More sharing options...
lgpmichael Posted April 24, 2011 Author Share Posted April 24, 2011 There's no such setting, could you post the scripts? To be honest, not a lot of point, I've pruned it down to a single short which is messaged in GameMode, and a single dialog topic that sets it once to a value. The value is lost on restart. I am taking this as a quirk of the CS and rebuilding the quest. Link to comment Share on other sites More sharing options...
lgpmichael Posted April 26, 2011 Author Share Posted April 26, 2011 There's no such setting, could you post the scripts? To be honest, not a lot of point, I've pruned it down to a single short which is messaged in GameMode, and a single dialog topic that sets it once to a value. The value is lost on restart. I am taking this as a quirk of the CS and rebuilding the quest. Just as a bit of final info for anyone else that happens upon this bug - it IS a bug - and recreating the base quest object, and creating a new quest script fixes it. Just moving dialog objects to the new quest is fine, they didn't have a problem. Replacing the quest and quest script seem to be required though. Link to comment Share on other sites More sharing options...
Recommended Posts