Troutland Posted August 6, 2015 Share Posted August 6, 2015 (edited) Sorry if a mod like this exists, but I couldn't find one. Just looking for a mod that automatically unequips whatever armor (clothing,helmet,etc.) you're wearing when its condition hits 0 and it breaks. Thanks! Edited August 6, 2015 by Troutland Link to comment Share on other sites More sharing options...
devinpatterson Posted August 8, 2015 Share Posted August 8, 2015 Hmmm I recall one, but I think one could be made with a bit of elbow grease and you don't mind using NVSE. There's a function that lets you get the item health of an equipped item by body/equipment slot. Almost all armor is #2 upper body slot, and most helmets will be 0 (head, although there are several other body slots that are in the area, like headband, hat etc). A quest script on the player checking every second or so can store that var and toss it over to an the vanilla UnequipItem function and it'll bounce back into the players inventory. Just need to tie it together, but it seems pretty straight forward. If you'd like I can look into putting it together for you, just be forewarned I'v got a lot of projects and requests I'm juggling so it might be a bit before I get to it. Link to comment Share on other sites More sharing options...
devinpatterson Posted August 8, 2015 Share Posted August 8, 2015 Oh just in case anyone else jumps on this or wants to, the NVSE function is GetEquippedCurrentHealth. If you'v worked with NVSE before your probably already familiar with it, but just to save a bit of time. Link to comment Share on other sites More sharing options...
Troutland Posted August 8, 2015 Author Share Posted August 8, 2015 Hmmm I recall one, but I think one could be made with a bit of elbow grease and you don't mind using NVSE. There's a function that lets you get the item health of an equipped item by body/equipment slot. Almost all armor is #2 upper body slot, and most helmets will be 0 (head, although there are several other body slots that are in the area, like headband, hat etc). A quest script on the player checking every second or so can store that var and toss it over to an the vanilla UnequipItem function and it'll bounce back into the players inventory. Just need to tie it together, but it seems pretty straight forward. If you'd like I can look into putting it together for you, just be forewarned I'v got a lot of projects and requests I'm juggling so it might be a bit before I get to it. I'd really appreciate it if you can put one together however long it takes! :laugh: I tried poking around GECK for a while and after going through the tutorials, I just got more confused how the whole thing works (never been into any kind of scripting). As for NVSE, half of the mods I have already use it, so no need to worry about that :smile: Link to comment Share on other sites More sharing options...
Recommended Posts