SabinXL Posted December 15, 2012 Posted December 15, 2012 (edited) Hi folks, I currently have a script that goes and replaces certain values for one piece of equipment from another piece of equipment in the system. The scripts work perfectly with one catch - the actor values that weapons and armor modify (DamageResist, MeleeDamage, CarryWeight/InventoryWeight, etc) don't actually get updated with these new values until you un-equip something you're wearing or equip something different. I was wondering if anyone knows of a subtle workaround for this issue via scripting? I've been looking for some solutions in the actor scripts, but there doesn't seem to be a script that just tells the game to recalculate all actor values - anyone know if this is doable? Edited December 15, 2012 by SabinXL
SabinXL Posted December 15, 2012 Author Posted December 15, 2012 Updated the original post to be a bit more clear... It looks like the problem is with actor values not properly recalculating the updated weapon/armor values on initial game load.
steve40 Posted December 16, 2012 Posted December 16, 2012 (edited) You need to silently unequip/re-equip the actor. This has been covered in another thread/mod. I'll search the forum and post the details soon. Edit: this thread might help, it touches on a similar problem. The mod is Detailed Potion Names. It might help if you download that mod and take a look at its scripts. Cheers. Edited December 16, 2012 by steve40
SabinXL Posted December 16, 2012 Author Posted December 16, 2012 On 12/16/2012 at 12:51 AM, steve40 said: You need to silently unequip/re-equip the actor. This has been covered in another thread/mod. I'll search the forum and post the details soon. Edit: this thread might help, it touches on a similar problem. The mod is Detailed Potion Names. It might help if you download that mod and take a look at its scripts. Cheers. Awesome - I'll take a look at the thread and mod to see what I can snag. Appreciate the assistance.
Recommended Posts