Setting up a player owned bed in a custom house mod

Post » Wed Jun 20, 2012 6:23 am

Hello,
As the topic says, I've made myself a nice little storage and housing mod, but my bed is only giving me the 5% rested bonus. I've tried adding the bed's ownership to playerfaction and to playerbedfaction, but neither seem to work. Since this is something I built from scratch, I'm wondering what I missed to make this svcker work. Any help would be appreciated.
User avatar
Jessica Thomson
 
Posts: 3337
Joined: Fri Jul 21, 2006 5:10 am

Post » Wed Jun 20, 2012 12:54 am

On the bed, set the 'Ownership' faction to 'PlayerBedOwnership'.
See if that works.
User avatar
jadie kell
 
Posts: 3497
Joined: Sat Jul 29, 2006 3:54 pm

Post » Wed Jun 20, 2012 7:47 am

i looked at the player sleep quest and it only gives well rested bonus if your house has the following keyword:
LocTypePlayerHouse
User avatar
kennedy
 
Posts: 3299
Joined: Mon Oct 16, 2006 1:53 am

Post » Wed Jun 20, 2012 1:11 am

Set playerbedownership, no dice.
Amethyst, do you set that in the cell itself?
User avatar
Maeva
 
Posts: 3349
Joined: Mon Mar 26, 2007 11:27 pm

Post » Tue Jun 19, 2012 11:07 pm

create a new location

somthing like MyPlayerHouseLocation. then add the keyword in the box on the lower left (you may also consider adding: LocTypeDwelling and LocTypeHouse just in case, because it seems other playerhouses have this as well)

then edit your house cell and set its location to that one


i just tried this on my house and can confirm it works

Edit: you still want to keep your bed as playerbedownership just in case you have NPCs around (now or in the future), so they dont randomly sleep in your bed.
User avatar
Lynette Wilson
 
Posts: 3424
Joined: Fri Jul 14, 2006 4:20 pm

Post » Wed Jun 20, 2012 3:45 am

Thank you, this did the trick. I hadn't even set up a location, much less applied the keywords. The only problem left (and this is a relatively minor one) is that after the player sleeps in the bed, you should see the message "you awaken feeling well rested", however, upon waking up, there is no message displayed.
User avatar
Josee Leach
 
Posts: 3371
Joined: Tue Dec 26, 2006 10:50 pm

Post » Wed Jun 20, 2012 10:33 am

i don't think it shows the message on vanilla player house beds either. it's probably missing in the script.
User avatar
No Name
 
Posts: 3456
Joined: Mon Dec 03, 2007 2:30 am

Post » Wed Jun 20, 2012 5:35 am

So what is the exact condition that lets a player sleep in the bed? If, say, I want to fill a quest alias with the closest bed he can sleep in?
User avatar
Bryanna Vacchiano
 
Posts: 3425
Joined: Wed Jan 31, 2007 9:54 pm

Post » Wed Jun 20, 2012 11:13 am

well rested = bed owned by playerbedownership faction + cell with ownership playerfaction + location of cell with keyword loctypeplayerhouse


must have all 3 for it to be considered a legit player owned bed
User avatar
Genocidal Cry
 
Posts: 3357
Joined: Fri Jun 22, 2007 10:02 pm

Post » Wed Jun 20, 2012 7:32 am

Oh, I mean any bed...what prevents the player from sleeping in it, and is usable as a condition on a quest alias (You can't use "IsOwned", because you have to say owned by whom...which would require one condition for every single NPC in the game, which would be tedious, to say the least) - or are all beds that you can sleep in owned by the player?
User avatar
Lovingly
 
Posts: 3414
Joined: Fri Sep 15, 2006 6:36 am

Post » Tue Jun 19, 2012 9:11 pm

can you use isOwned to look for "none"?

because player can sleep in a non-owned bed.

if you can query isOwned to look for none && playerbedfaction, that should narrow down almost all sleepable beds
User avatar
Abi Emily
 
Posts: 3435
Joined: Wed Aug 09, 2006 7:59 am

Post » Tue Jun 19, 2012 11:44 pm

Not sure if leaving it at "None" will work, but I'll give it a shot in the morning...the pick list doesn't have "none" at the top, which would seem to imply that None isn't a working value for that particular condition.
User avatar
Kayleigh Williams
 
Posts: 3397
Joined: Wed Aug 23, 2006 10:41 am


Return to V - Skyrim