SGTbayk47 Posted February 10, 2020 Share Posted February 10, 2020 Hi all, I am currently trying to use the SetScript function in a mod I am working on, but am running into problems when I try to use my script in the function. I am trying to use the function on a base object like below. SetScript MyScriptID ArmorID However when I try to save the script, I get this error regarding my script: 'Invalid object 'MyScriptID' for parameter target item.' I have tried attaching my script to a misc item, and calling the ID of that in place of the script, which does allow me to save the script but the change isn't applied to the target item. The script does work as I have used the misc item I created to test it. Any help using this function would be greatly appreciated. Link to comment Share on other sites More sharing options...
Mktavish Posted February 16, 2020 Share Posted February 16, 2020 Ya I get the same problem in various testing. It just does not like script objects ... as if the geck compiler needs another extension ? Can't even get it to work with their prescribed method for a ref object. But you can always just get it done by swapping out the base object with a new one , that then has the new script. Link to comment Share on other sites More sharing options...
Recommended Posts