How to clean scripts skyrim

broken image
broken image

That would allow my item-script to initialize that property correctly as it does when I start a completely new game. I guess that simply changing the name of the property would do the trick, but I wish learn if it's possible to remove the old script from the saved game entirely. The Property in question used to point at a script extending Actor, whereas now this property (variable name unchanged) points to a script extending ReferenceAlias. My game loads an item and finds that a property in a script attached to that item has changed type and fails to assign a new pointer to that reference because the types differ. This causes a problem in a particular saved game because apparently, old scripts are retained in the saves even after one removes them from the filesystem. After some initial trials at attaching a script to the Player in order to listen for certain events, I've re-written the script which did this incorrectly and changed its type as was necessary.