Hearthfire crafting- how do the scripts work?

Post » Tue Nov 20, 2012 7:58 am

So for a change of pace in my modding, I've decided to try my hand at making it so the player can use the Hearthfire DLC to become a full-blown feudal landowner, complete with serfs to work the fields.

Right now I'm building a farmhouse (possibly a couple of farmhouses, if I get confident enough) for the serfs to live in, when they're not too busy toiling.

I understand that getting the buildable farmhouse to show up in the crafting menu is probably just a matter of assigning the appropriate keywords to the "Farmhouse" misc. object, but I was wondering how exactly I would make it so the house would actually show up in the world?

Since I can't actually view the Hearthfire scripts (which I assume is normal, I recall something similar with Dawnguard), I can't exactly take a look, but I was wondering if anyone had any idea as to how the scripts work? Posting an example or two would also be greatly appreciated.
User avatar
carly mcdonough
 
Posts: 3402
Joined: Fri Jul 28, 2006 3:23 am

Post » Tue Nov 20, 2012 1:03 am

It'll be a simple case of Enable() mate. With crafting, look in the CK at the actual recipes for the house items, and how that relates to the players inventory.

That's what you want to look at. What object actually gets created when you craft. That object will likely just have an enable script attached. (Probably more complex, but that's the basics).
User avatar
Tyrone Haywood
 
Posts: 3472
Joined: Sun Apr 29, 2007 7:10 am

Post » Tue Nov 20, 2012 1:08 pm

It'll be a simple case of Enable() mate. With crafting, look in the CK at the actual recipes for the house items, and how that relates to the players inventory.

That's what you want to look at. What object actually gets created when you craft. That object will likely just have an enable script attached. (Probably more complex, but that's the basics).

Ah, I thought it might be something like that. Easy peasy.
User avatar
Antonio Gigliotta
 
Posts: 3439
Joined: Fri Jul 06, 2007 1:39 pm


Return to V - Skyrim