Tracking Weapon Uses

Post » Sat Nov 02, 2013 3:03 am

I have been looking for a way to do this without aliases and have so far not had much luck...

Basically, I want to be able to incriment a variable for any equipped weapon each time it is "swung" or fired to keep track of uses. Counting the hits isn't the problem, it is finding a way to store them...

In previous versions of the CK you could dynamically add a script to a reference that could store the variable, but it doesn't seem possible here.

So, my question is: How can I dynamically attach a script to a weapon I equip to track uses, that will persist so long as that reference exists (so if I put the weapon down and pick it up, it keeps the count.)

Also, will enchanting a weapon change it's reference ID and thus break this tracking?

I am honestly not sure if this is even possible... Seems like it should be though.
User avatar
Sara Lee
 
Posts: 3448
Joined: Mon Sep 25, 2006 1:40 pm

Return to V - Skyrim