See You Sleep In Skyrim?

Post » Thu Jun 21, 2012 5:47 pm

Well that script did not quite work, closer

Maybe I have not defined something correctly in the alias or the package but here is what I have

If I run your script above nothing appears to happen when I click on the bed.

If I add some more debug stuff I get to the sleep check loop and stay there...

Unless I add Game.SetPlayerAIDriven() I will never run the package but good news is
when I add that the package run check on the player says the package is running

However the player doesn't seem to do anything? I can change the package to refer to sleep on any bed, sleep on ref or sleep on alias and all have no results

Yet the package according to game.getplayer().GetCurrentPackage() is running.

So again for some reason while waiting on the loop the player seems to wait as well...
User avatar
Chloe Mayo
 
Posts: 3404
Joined: Wed Jun 21, 2006 11:59 pm

Post » Thu Jun 21, 2012 9:16 am

Left out the lines for setting player to AI driven. Edited them in now.
User avatar
Emmi Coolahan
 
Posts: 3335
Joined: Wed Jan 24, 2007 9:14 pm

Post » Thu Jun 21, 2012 3:08 pm

Ok I have that, But the player actor doesn't do anything but stand there. The debug shows that the package is running, The script never comes out of the loop because the package never makes the actor move ?
I have a standard sleep package pointed at the alias of the bed.

On the quest I have the bed as a specific reference for its alias and the player as a unique actor reference.

On the alias of the actor I have the package for the sleep of the bed

Maybe it's the perk thing ??? you mention that I don't get ?

Would you have a simple .ESP with the quest and package and script above so I could see why yours would work and mine is not ?
User avatar
stevie trent
 
Posts: 3460
Joined: Thu Oct 11, 2007 3:33 pm

Post » Thu Jun 21, 2012 5:30 am

I don't know why it doesn't work for you when it does for me: http://youtu.be/DnI9H5hIPJU

I had to change one of the lines to prevent an infinite "getting into bed" loop.

if (akActionRef == Game.GetPlayer())  && !((akActionRef as Actor).GetSleepState())
User avatar
Sabrina Steige
 
Posts: 3396
Joined: Mon Aug 20, 2007 9:51 pm

Post » Thu Jun 21, 2012 6:19 pm

So what is the perk thing you mentioned above ? " I add a perk to the player. This perk has an "activate" entry point"
User avatar
luis ortiz
 
Posts: 3355
Joined: Sun Oct 07, 2007 8:21 pm

Post » Thu Jun 21, 2012 11:02 am

That was me explaining how I was making a "See You Sleep" mod. I decided to use a perk so that the same thing would occur no matter which bed is activated, without needing to put a script on every bed in the game. Since you're only doing that for a single specific bed, you don't need to do that.
User avatar
Claudz
 
Posts: 3484
Joined: Thu Sep 07, 2006 5:33 am

Previous

Return to V - Skyrim