Dreaming a Little

Post » Thu Jun 21, 2012 1:52 am

My plan is to make the player dream a little dream. I want to move the player somewhere else when sleeping in a rented bed in Sleeping Giant Inn in Riverwood. I think it can be done using OnSleepStop and MoveTo, but i'm not sure what to do. Something similar happens in the DB, but I can't find that anywhere in the creation kit.
I hope someone can guide me through it. :liplick:

The Wormple
User avatar
Emma Copeland
 
Posts: 3383
Joined: Sat Jul 01, 2006 12:37 am

Post » Thu Jun 21, 2012 1:01 pm

I think you would just RegisterForSleep at some point in the quest you have set up to handle this, and then make an OnSleepStart moveTo script.
User avatar
Laura Ellaby
 
Posts: 3355
Joined: Sun Jul 02, 2006 9:59 am

Post » Thu Jun 21, 2012 5:47 am

So I could make the script on the bed reference?
I'm not very familiar with the papyrus system, but here's the script I've made. It still complains about something.
Scriptname aaaBedTriggerScript extends ObjectReference Quest Property aaaBedTriggerQ  AutoObjectReference Property aaaBedTriggerTeleportMarker  Auto Function RegisterForSleep()EndFunctionEvent OnSleepStart  Game.GetPlayer().MoveTo aaaBedTriggerTeleportMarkerEndEvent
User avatar
Ysabelle
 
Posts: 3413
Joined: Sat Jul 08, 2006 5:58 pm

Post » Thu Jun 21, 2012 7:51 am

Parentheses. You needs them.
User avatar
Steven Hardman
 
Posts: 3323
Joined: Sun Jun 10, 2007 5:12 pm

Post » Thu Jun 21, 2012 12:16 am

Yeah, okay, parantheses... but where???
User avatar
JeSsy ArEllano
 
Posts: 3369
Joined: Fri Oct 20, 2006 10:51 am

Post » Thu Jun 21, 2012 11:46 am

Well, you're a bit off in general actually. Something needs to tell you to Game.GetPlayer().RegisterForSleep(), and then you would probably fill an alias with the player and then do an
Event OnSleepStop()
Game.GetPlayer().MoveTo(aaaWhateverRef)
endEvent
User avatar
Sasha Brown
 
Posts: 3426
Joined: Sat Jan 20, 2007 4:46 pm

Post » Thu Jun 21, 2012 3:06 am

I know I'm a noob but how do I "fill an alias with the player" and what should I do with it afterwards? Now it says this when I try to save the script: ".....aaaBedTriggerScript.psc(7,4): no viable alternative at input '.'
User avatar
Rob Davidson
 
Posts: 3422
Joined: Thu Aug 02, 2007 2:52 am

Post » Thu Jun 21, 2012 4:44 am

You may want to give the official tutorials a go first. You can find them on www.creationkit.com

At first glance, it way seem that they don't cover anything you are looking for. But just stick with them as they give you a good foundation that you can then build up from. They teach you the basics, but once mastered, you will have a good basic understanding of all aspects of the creation kit

- Hypno
User avatar
bonita mathews
 
Posts: 3405
Joined: Sun Aug 06, 2006 5:04 am

Post » Thu Jun 21, 2012 10:10 am

Maybe you're right, but after using a lot of time on learning how to use the Construction Set for Oblivion, I feel like making the same things in the Creation Kit as I could there. It seems I can't - very annoying actually. :banghead:

But :thanks: for the time.
User avatar
Terry
 
Posts: 3368
Joined: Mon Jul 09, 2007 1:21 am


Return to V - Skyrim