chocolatesweetroll Posted April 17, 2013 Share Posted April 17, 2013 (edited) (Updated on 04/20) Hello EverybodyI'm new to modding, please forgive my beginner questions :wink:BACKGROUND:I'm working on my first mod, and like to add an UNINSTALL function, which deletes items my mod adds to the game which will mess up save games. GOAL: users can try out the mod, and if they don't like it, use the UNINSTALL function, and take it out again without damaging their save files.This UNINSTALL function is done via script. As far as I have read so far, only items which cause scripts to be integrated into the save game can cause trouble, everything else will just not load if used without the mod, and gone if the user saves without the mod. The only items that cause trouble are items which have scripts attached. On save these scripts are "embedded" into the save game, and run regardless of whether the mod is active or not. However, if something that has a script attached is deleted, its script is somehow marked as inactive and no longer runs. That would mean I only need to find out how to delete all the activators, the "empty" quest catching "OnInit", and the player alias to catch "OnPlayerLoadGame". The other stuff like containers, formlists, messages, etc can stay as it will be gone from the save the next time the user saves the game without my mod present. QUESTION:How can I delete activators, quests and player aliases? I can link to container instances from a script via properties, but I haven't found out how to link to activator instances. Activator properties don't link to their instances like container properties, but only to their forms. And I haven't found anything on how to delete a quest and a player alias from within a script. Again my apologies if this has been answered somewhere already. So far I have found how to do everything else, but I can't find anything about deleting the above items.Thank you so much for reading this, and greetings to all you modders. I greatly admire your skills and patience to make your mods nice and neat for us users!chocolatesweetroll Edited April 20, 2013 by chocolatesweetroll Link to comment Share on other sites More sharing options...
Recommended Posts