I am working on the unfinished weapon durability script I got from Trigun and now I need to make some functions to repair items (reset the durability variable).
After Space Guy's reply I checked the code more in-detail and found out the durability is stored as one variable per item slot. After clearing this out it should be no problem for me to get this done.
Yeah and another time sorry man. :C
Also, per item slot sound a bit odd:
What if you put an other weapon in that specific slot?
Will it take over the durability of the old weapon?
What if you switch the slot the weapon is in?
If you got those answers covered, i don't think there is a problem with your way of doing it, but if you don't, you should really think about it.