Jump to content

Lover's Comfort Mod


GaiusMartius

Recommended Posts

Papyrus didn't change drastically between Skyrim and FO4, so I'm pretty sure it's possible.

I'm actually in the CK right now. Seems simple enough. I can try to make it tonight.

Link to comment
Share on other sites

Hold on a second. I'm looking at the way the game handles the lover's comfort perk/script and it seems to already function like you want.

See the following code:

If RelationshipMarriageFIN.IsRunning() == True && RelationshipMarriageFIN.GetStage() >= 10 && Game.GetPlayer().GetCurrentLocation() == LoveInterest.GetActorRef().GetCurrentLocation()

That set of conditions runs when the player wakes up. If the player's spouse in the same room, they get the perk.

Perhaps I have misunderstood your request.

Link to comment
Share on other sites

Hold on a second. I'm looking at the way the game handles the lover's comfort perk/script and it seems to already function like you want.

See the following code:

If RelationshipMarriageFIN.IsRunning() == True && RelationshipMarriageFIN.GetStage() >= 10 && Game.GetPlayer().GetCurrentLocation() == LoveInterest.GetActorRef().GetCurrentLocation()

That set of conditions runs when the player wakes up. If the player's spouse in the same room, they get the perk.

Perhaps I have misunderstood your request.

Hey Undivide,

 

Thanks for your interest, I'm pretty sure that the spouse has to be in bed for it to work. So the trouble is that the perk is contingent on the NPC's coded routine which is variable, depending on how the NPC is scripted. E.g. Lydia seems to go to bed at 1:00am, most normal NPCs go to bed at like 9:00pm etc. So in the vanilla game you need two things to get the perk, first you need to know the spouse's sleep routine, and said spouse needs to be home. One does not get the perk if one's spouse is following your character, and in the same room. So if you are out doing a quest and decide to sleep at an inn, you can't get the perk because your spouse is a follower, and if you dismiss them they just head back home. This was of course changed in Fallout 4, where your character could sleep anywhere with their SO as a follower, and get the perk.

Link to comment
Share on other sites

 

Hold on a second. I'm looking at the way the game handles the lover's comfort perk/script and it seems to already function like you want.

See the following code:

If RelationshipMarriageFIN.IsRunning() == True && RelationshipMarriageFIN.GetStage() >= 10 && Game.GetPlayer().GetCurrentLocation() == LoveInterest.GetActorRef().GetCurrentLocation()

That set of conditions runs when the player wakes up. If the player's spouse in the same room, they get the perk.

Perhaps I have misunderstood your request.

Hey Undivide,

 

Thanks for your interest, I'm pretty sure that the spouse has to be in bed for it to work. So the trouble is that the perk is contingent on the NPC's coded routine which is variable, depending on how the NPC is scripted. E.g. Lydia seems to go to bed at 1:00am, most normal NPCs go to bed at like 9:00pm etc. So in the vanilla game you need two things to get the perk, first you need to know the spouse's sleep routine, and said spouse needs to be home. One does not get the perk if one's spouse is following your character, and in the same room. So if you are out doing a quest and decide to sleep at an inn, you can't get the perk because your spouse is a follower, and if you dismiss them they just head back home. This was of course changed in Fallout 4, where your character could sleep anywhere with their SO as a follower, and get the perk.

 

 

I have the code that controls when the perk is applied in front of me, and there's nothing there that requires spouses to be in bed for the perk to be applied. But I see what you mean about the inn. I should be able to do the request, but it'll be a separate perk/setup for the sake of not editing base script files.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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