albiondave Posted February 8, 2021 Posted February 8, 2021 Looking for some, probably, pretty basic guidance. Can this be done? I would like to repurpose a room in one of the Hearthfire homes to have a different purpose (and internal layout). The ideal would be to tap into the actual design and build process (but I suspect this can't be done because I can't find other mods that do this). Alternatively, is it possible to add a new conversation option to the Steward (or another NPC that I can place in the home) which triggers a redesign/rebuild of the room? I'd like to change the Storage Room to be a Dojo with rugs on the floor but no other furniture and have a "Trainer" NPC. So to change the room I'd need to check that the pre-requisites are met and then script the changes to the room (which I guess would mean deleting all the 'standard' furniture pieces - with appropriate error-trapping to check they exist - and then add the new items). Next Steps... Then have the NPC Trainer based in the room who you can talk to and have [pre-existing] animations triggered based on the conversation. So, something like the PC be able to say "Teach me to use a sword" and then the NPC does a normal 1-handed sword power attack move (having moved to the centre of the room). I am new to modding and have managed to create new NPC/Followers but am struggling with the "animation from conversation". I think it needs to work as a quest, with each stage opening a new conversation option (and hiding the prior ones) and each new conversation option triggering a different animation and moving on to the next quest stage. Thanks in advance to anyone willing to give advice on what's possible and any prompts as to how to go about creating something along these lines.
Psalam Posted February 8, 2021 Posted February 8, 2021 11 minutes ago, albiondave said: Looking for some, probably, pretty basic guidance. Can this be done? I would like to repurpose a room in one of the Hearthfire homes to have a different purpose (and internal layout). The ideal would be to tap into the actual design and build process (but I suspect this can't be done because I can't find other mods that do this). Alternatively, is it possible to add a new conversation option to the Steward (or another NPC that I can place in the home) which triggers a redesign/rebuild of the room? I'd like to change the Storage Room to be a Dojo with rugs on the floor but no other furniture and have a "Trainer" NPC. So to change the room I'd need to check that the pre-requisites are met and then script the changes to the room (which I guess would mean deleting all the 'standard' furniture pieces - with appropriate error-trapping to check they exist - and then add the new items). Next Steps... Then have the NPC Trainer based in the room who you can talk to and have [pre-existing] animations triggered based on the conversation. So, something like the PC be able to say "Teach me to use a sword" and then the NPC does a normal 1-handed sword power attack move (having moved to the centre of the room). I am new to modding and have managed to create new NPC/Followers but am struggling with the "animation from conversation". I think it needs to work as a quest, with each stage opening a new conversation option (and hiding the prior ones) and each new conversation option triggering a different animation and moving on to the next quest stage. Thanks in advance to anyone willing to give advice on what's possible and any prompts as to how to go about creating something along these lines. I don't know HOW it can be done but this mod proves that it CAN be done: You might want to try PMing the mod's author (who I happen to know is still active) and ask him for pointers.
Harvald Posted February 8, 2021 Posted February 8, 2021 It is possible to do this. On the workbench in the relevant part of the house there is a script with which the built furniture will be enabled. Every piece is in the interior from the beginning but it is disabled. This means first of all delete all furniture in the interior that is no longer needed and replace it with your new furnishings. Set it to initially disabled and integrate the enable process into the new Building script/questscript.
EinarrTheRed Posted February 9, 2021 Posted February 9, 2021 4 hours ago, albiondave said: I would like to repurpose a room in one of the Hearthfire homes to have a different purpose (and internal layout). The ideal would be to tap into the actual design and build process (but I suspect this can't be done because I can't find other mods that do this). Alternatively, is it possible to add a new conversation option to the Steward (or another NPC that I can place in the home) which triggers a redesign/rebuild of the room? Its possible. Its not easy. Modifying the existing rooms gets complicated because of the way Bethesda built the Hearthfire homes... they're a bit of a mess inside and its time consuming to figure out what prop sets are parented to what. Bethesda didn't use Xmarkers as enable markers, instead they use a particular furniture item that is part of each set being enabled. That makes selecting or changing things difficult because you have to sort through and find each one. Then there's the scripted system which involves a temporary item that is added and removed from your inventory when you "craft" something at the work bench (you actually do craft something). That in turn triggers a script which looks up that temporary item in a form list and finds its index number. The script then looks in a second form list using that index number and finds the item listed at that index. That turns out to be the the furniture item that is to be enabled and the script then sets that item (and its enable state children) to be enabled. Its not impossible to modify, it just takes a lot of patience. If you want to create your own home crafting system, Darkfox came up with a simpler and more reliable system and has a video with a full tutorial on how to set it up. Or you could do what I did, knock out a wall and build out your own space and just ignore all the crafting completely.
albiondave Posted February 9, 2021 Author Posted February 9, 2021 6 hours ago, EinarrTheRed said: Its possible. Its not easy. Modifying the existing rooms gets complicated because of the way Bethesda built the Hearthfire homes... they're a bit of a mess inside and its time consuming to figure out what prop sets are parented to what. Bethesda didn't use Xmarkers as enable markers, instead they use a particular furniture item that is part of each set being enabled. That makes selecting or changing things difficult because you have to sort through and find each one. Then there's the scripted system which involves a temporary item that is added and removed from your inventory when you "craft" something at the work bench (you actually do craft something). That in turn triggers a script which looks up that temporary item in a form list and finds its index number. The script then looks in a second form list using that index number and finds the item listed at that index. That turns out to be the the furniture item that is to be enabled and the script then sets that item (and its enable state children) to be enabled. Its not impossible to modify, it just takes a lot of patience. If you want to create your own home crafting system, Darkfox came up with a simpler and more reliable system and has a video with a full tutorial on how to set it up. Or you could do what I did, knock out a wall and build out your own space and just ignore all the crafting completely. Thanks for the detailed reply. I thought that it would be something complexotherwise lots of mods would exist changing the build options. I had thought about building a new 'outbuilding' beside one of the homes and changing the planned dialog from "I see you have an old store room..." to "I see you have an unused outbuilding..." Not a huge change so I might have to follow your advice. As for knocking through to another room, where did you put the extra room so as not to have the same issues of difficult-to-remove furniture blocking the way?
albiondave Posted February 9, 2021 Author Posted February 9, 2021 10 hours ago, Harvald said: It is possible to do this. On the workbench in the relevant part of the house there is a script with which the built furniture will be enabled. Every piece is in the interior from the beginning but it is disabled. This means first of all delete all furniture in the interior that is no longer needed and replace it with your new furnishings. Set it to initially disabled and integrate the enable process into the new Building script/questscript. Won't using the workbench then crash the game? Or is the workbench clever enough to 'see' what needs to be enabled? Or should I be looking to remove the workbench too?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.