FullArmor777 Posted July 20, 2021 Share Posted July 20, 2021 Hello, All! I am a long time software developer but new to Skyrim modding. To help me learn I am attempting to create a test ring that adds gold to the player whenever they equip it. I will not be using it in game but it is just a simple test object that exercises several aspects that I am learning.I have created the script with OnEquipped and OnUnequipped event handlers and verified that the script does run. I've attached the script to the test ring and set up the parameters (see screen grabs for the params and test script below). The problem is that the auto parameter is null when the script runs. I've looked at this for days and for the life of me I can't figure out what I've done wrong. I would very much appreciate other more experienced eyes looking for what I've done wrong. I expect it is something simple and (dragon) boneheaded but I'm missing it. Thanks!Test Ring Object Script Parameters: Test Ring Script: Link to comment Share on other sites More sharing options...
IsharaMeradin Posted July 20, 2021 Share Posted July 20, 2021 Are you testing on a new game? If using a save file, do you already have the ring in question in your inventory? If yes, this is the problem. Objects already loaded will have an instance of the script "baked" into the save file and will use that rather than any new version that might be available. In this scenario, if you set that instance of the ring aside and spawn in a new instance with the console, the new instance should utilize the newest version of the script that is available. Link to comment Share on other sites More sharing options...
FullArmor777 Posted July 20, 2021 Author Share Posted July 20, 2021 You are a lifesaver. That was exactly what was going on. Thank you!!! Link to comment Share on other sites More sharing options...
Recommended Posts