SO you're adding an object of some sort (doesn't say here what it is) to a levelled item inside the container, that is presumably not of the akForm type? Wouldn't it be easier to use a resetting boolean?
The LVLI is empty other than the form added with AddForm(). Doesn't matter what the object is. The first time the function is called after any save load, it'll return true 'cause akForm isn't there. Each time thereafter until reload, it'll return false.
the point is: this method is based on a bug. If bethesda fixes it, your script will not work after.
Yup. Would be nice if we could just set a bGetGameLoaded "Constant" GLOB from 1 to 0 each save load, but none of the PapyrusGLOB functions will set a "Constant", unfortunately.
Bool Check = True{ According to Bethesda, This should reset on game load, but not at any other time if the object is persistant. }Bool Function GetGameLoaded() if Check Check = False return True else return False endifEndFunction^Works for the first save load, but not for consecutive loads.
Edit: Wups. Meant to edit the previous post.