Jump to content

Is there a way to make this work with armor?


Werne

Recommended Posts

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 by Werne
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...