Werne Posted October 29, 2011 Posted October 29, 2011 (edited) Ok, I've made a mod to repair my weapons, it works simple. It adds an aid item that runs a script when consumed. The script is in the spoiler. Anyway, I would like to know is there some way to make the armor/outfits repair the same way, when the item is activated it runs the script that repairs the outfit by a certain percentage. I know there is a mod that does that for NV but unfortunately I don't have New Vegas so I can't see what it does. scn werneWRK float weapHealth BEGIN ScriptEffectStart ; get the current weapon health percent set weapHealth to player.getweaponhealthperc ; repair player weapon player.set weapHealth to weapHealth + 25 ; set the weapons new health percent player.setWeaponHealthPerc weapHealth END Edited October 29, 2011 by Werne
rickerhk Posted October 31, 2011 Posted October 31, 2011 You could do it. It will require FOSE functions that work with currently equipped armor. I did something like this in my Brisa Almodovar mod. Not as an ingestible, but the sequence of functions required wouldn't be much different to a script adapted to an aid item.For Fallout NV, such a mod would require NVSE. There's no vanilla scripting way to repair armor in either game.
nivea Posted November 1, 2011 Posted November 1, 2011 (edited) oops wrong thread, sorry about that. Edited November 1, 2011 by nivea
Werne Posted November 1, 2011 Author Posted November 1, 2011 @rickerhk Yeah, I know it will require fose, vanilla scripting is extremely limited. Well, I'll go look at fose commands and see what I can do. @nivea It happens.
Recommended Posts