Jump to content

Hearthfire and custom NPCs/Followers


Talynsun

Recommended Posts

Hi guys,

I'm currently working on a follower mod and I'm SO close to finishing it but I've ran into a bit of a snag...

One of the custom voiced followers is marriageable and everything works great other than the Hearthfire related stuff.

Basically, once the payer has wed the NPC not all of the relocation options are available...

Now, I'm not too sure what I'm supposed to change/add to make this follower compatible with Hearthfire homes.

The conditions that are somewhat different to the regular "I have a house in..." are:


S | GetVMQuestVariable
Quest "BYOHRelationshipAdoptable"
VM Variable ::BYOHAdoption_PlayerOwns_BYOHPale_var

 

 

PL | GetInFaction
Faction "BYOHRelationshipAdoptionFaction

 

 

S | GetVMQuestVariable
Quest "BYOHRelationshipAdoptable"
VM Variable ::BYOHAdoption_HasChildBedroom_BYOHPale_var

 

I read that as... does the player own the home? (yes), is the player in the adoption faction? (should be by default, no?) and/or does the home have child rooms? (in this case, yes).
But then again I could be totally wrong and what I need to change/add might be in a totally different area of the CK...

Perhaps someone can shed light on what I need to do to because I'm quickly running out of ideas and I'd hate to leave this functionality out of the mod.

Link to comment
Share on other sites

Ok, I believe I've narrowed down the issue. It appears the scripts aren't duplicating when it concerns the Hearthfire homes.

 

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname BYOH_TIF__01003EC2 Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
GetOwningQuest().SetStage(10)
(GetOwningQuest() as RelationshipMarriageSpouseHouseScript).MoveSpouse(akspeaker, PaleHouse)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

ReferenceAlias Property PaleHouse Auto

 

Now, I'm very new to the Creation kit and I'm wondering what is the best/easiest/pain-free approach to copying/linking my topic info with a script like the one above?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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