Is it possible to change the repair behavior?

Post » Thu May 03, 2012 7:48 pm

Hello, i was wondering if its possible to change the repair behavior. Not sure how the repair system works. But i wanted to make weapons i repair with other weapons produce some kind of spare parts or just scrap metal instead of the obsolete weapon just mysteriously vanishing. What I'm looking is the repair self routine.

Thanks in advance.
User avatar
lacy lake
 
Posts: 3450
Joined: Sun Dec 31, 2006 12:13 am

Post » Thu May 03, 2012 7:41 pm

You would think it would be as easy as finding a generic repair script and editing with player.additem. But Im guessing that function is not changeable with the GECK. As far as I can tell anyways , nothing in scripting shows removeing an Item then increasing the health of another.

I suppose you could however write a script referenceing your inventory , and have it add the item you want when the said reference item=0. Then add the script to each weapon item editing it for each one with their item#. (sounds clunky though and would probably slow the game down)

But then it begs the question of what exactly was the desired result in game you were looking for? There could be a better way to achieve the player emersion that your seeking. But just messing with the geck in itself can be emersive ;)
User avatar
Javaun Thompson
 
Posts: 3397
Joined: Fri Sep 21, 2007 10:28 am

Post » Fri May 04, 2012 7:16 am

This is an interesting question... Actually spent a good deal of time trying to figure it out.

Though I may still be mistaken, it looks as though there's no inherent way (within the GECK) to alter repair behavior unfortunately.

The only thing I could fathom, would be to have an NPC or terminal linked to a container type thing, that the player would put in the two identical items (or give to, in the case of NPC), and you would use a script to spit out the repaired item and scrap. A function like AddItemHealthPercent would probably be a step in the right direction. Of course you'd have to calculate how the repair system works, I don't know if the item being repaired increases by a flat percent depending on your skill level or if it takes into account the obsolete items health as well.


Just a thought, I know it's not really what you need, but is the only thing I can think of similar.

User avatar
Amber Hubbard
 
Posts: 3537
Joined: Tue Dec 05, 2006 6:59 pm

Post » Fri May 04, 2012 4:01 am

Good ideas both. I will try to figure out something that will seem logical, i know i can trade scrap metal to NPC's for caps or other items so i guess that will be a solution. But i will pursuit the best solution, if i its possible. I will make a mod. As i said earlier that there is no logic that the destroyed item just vanish. Right now I'm just mining through G.E.C.K to see what i can do.
User avatar
christelle047
 
Posts: 3407
Joined: Mon Apr 09, 2007 12:50 pm


Return to Fallout 3