Scripts to edit constructible objects on the fly

Post » Wed May 11, 2016 8:38 pm

I've seen mods like Immersive Armors 7 and 8 or CCOR that inject items into levelled lists in game so that bashed patches aren't needed.


Would it be possible via any script function to edit recipes on the fly in game as well? I have a misc object that is a smaller portion of metal than an ingot, and I would want to replace all ingots in weapon recipes with these items. Is there a function for it?
User avatar
Glu Glu
 
Posts: 3352
Joined: Sun Apr 01, 2007 5:39 am

Post » Wed May 11, 2016 7:31 pm

If you're looking to do it to every recipe in the game and also have it work with other mods a player might be using, a SkyProc patcher is your best bet. I'm not sure if SKSE has functions for modifying COBJs, but even if it does, you'd probably have to do it every time the player loads a game, and doing it for every recipe would take ages.

User avatar
Ells
 
Posts: 3430
Joined: Thu Aug 10, 2006 9:03 pm

Post » Wed May 11, 2016 10:30 am

I thought so, and had always planned a skyproc. I just thought if such a function existed it might save a step for users. I guess it doesn't take ages for the levelled lists because it only injects for the npcs that are loaded as opposed to your whole crafting menu?
User avatar
Rik Douglas
 
Posts: 3385
Joined: Sat Jul 07, 2007 1:40 pm

Post » Wed May 11, 2016 11:15 am

I'm really not sure what exactly those mods do, but injected records are not script-related at all. I think you could use the technique to make your change to other mod recipes without explicitly requiring them as a master, but those recipes would then show up for all your users, regardless of whether or not they're using the relevant Other Mod.



[EDIT] I GUESS you could run a script that sets flags based on what mods are installed and then use those flags for recipe conditions, but the other thing is that the COBJs have that "item produced" field, so you'd end up having to fake twice as many forms for each mod you're considering. It can be super useful for things, but given the sweeping nature of what your mod seems to want to edit, it's 100% not worth the effort. SkyProc is definitely the way to go.

User avatar
Stephanie Kemp
 
Posts: 3329
Joined: Sun Jun 25, 2006 12:39 am

Post » Wed May 11, 2016 9:11 pm

Thanks. I guess a skyproc is what I'll do.
User avatar
Isabel Ruiz
 
Posts: 3447
Joined: Sat Nov 04, 2006 4:39 am


Return to V - Skyrim