GaiusMartius Posted February 9, 2017 Share Posted February 9, 2017 Would it be possible to make the lover's comfort perk work like in FO4, where all you needed was your character's significant other in the same bedroom as your character, to get the perk? Link to comment Share on other sites More sharing options...
Undivide Posted February 9, 2017 Share Posted February 9, 2017 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 More sharing options...
Undivide Posted February 10, 2017 Share Posted February 10, 2017 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 More sharing options...
GaiusMartius Posted February 10, 2017 Author Share Posted February 10, 2017 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 More sharing options...
lofgren Posted February 10, 2017 Share Posted February 10, 2017 Lover's Comfort does not require that your spouse is in bed. As long as you are in the same location you will get the bonus. Link to comment Share on other sites More sharing options...
Undivide Posted February 10, 2017 Share Posted February 10, 2017  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 More sharing options...
GaiusMartius Posted February 10, 2017 Author Share Posted February 10, 2017 (edited) @IofgrenThen maybe it's a bug pertaining to the "Visit your spouse at home" quest? As I've never received the perk anywhere but when my character's spouse was at home (not following), and actually in bed. Edited February 10, 2017 by GaiusMartius Link to comment Share on other sites More sharing options...
GaiusMartius Posted February 10, 2017 Author Share Posted February 10, 2017 Thanks Undivide. Link to comment Share on other sites More sharing options...
Undivide Posted February 10, 2017 Share Posted February 10, 2017 Should I release it as a mod on Nexus Mods or just PM it to you? I can't imagine many people have much of a use for this mod. Link to comment Share on other sites More sharing options...
GaiusMartius Posted February 10, 2017 Author Share Posted February 10, 2017 Should I release it as a mod on Nexus Mods or just PM it to you? I can't imagine many people have much of a use for this mod.You never know, may as well put it on the Nexus to increase access to it. Link to comment Share on other sites More sharing options...
Recommended Posts