Teleportation AND Forcing greet

Post » Tue Nov 20, 2012 11:51 am

I dont know if I should have done 2 different topics but... we will see.


1)
Ok so I need to understand how I can make the player teleported somewhere with the condition that the player have a certain amulet inside the inventory (or equiped, if it is as easy) AND the player is sleeping.

I dont know which event and fonction to use and on what or where.


2)
Also, how do you make an actor force the player to get into a dialogue? I thought I had it right by adding some AI package to the actor but he only say his line and dont get into a dialogue.

Thank you!
User avatar
Rachyroo
 
Posts: 3415
Joined: Tue Jun 20, 2006 11:23 pm

Post » Tue Nov 20, 2012 10:33 am

To teleport the player just use moveto. To detect when they sleep you need a quest with the player in an alias. Use Register for sleep events and then use OnSleepStart to catch when they next go to sleep. You can check to see if they're wearing the amulet with getwornform once the event has triggered.

To trigger the forcegreet use a package attached to a quest alias, or if you prefer a scene in a quest. Forcegreets can be fiddly but there's an excellent tutorial post on the subject on these forums.
User avatar
Pete Schmitzer
 
Posts: 3387
Joined: Fri Sep 14, 2007 8:20 am

Post » Tue Nov 20, 2012 4:52 am

Awesome help but I dont know/understand where to put the RegisterForSleep and where to put it. In which script place it should go?

http://www.creationkit.com/RegisterForSleep_-_Form
User avatar
Danel
 
Posts: 3417
Joined: Tue Feb 27, 2007 8:35 pm

Post » Mon Nov 19, 2012 9:30 pm

Easiest way is to have a quest with an alias for the player. When you want to start receiving sleep events, add something like Alias_Player.RegisterForSleep() to a quest stage fragment.

To process them, you'll need to add a script to the alias itself and define OnSleepStart and/or OnSleepStop in that.
User avatar
Anna S
 
Posts: 3408
Joined: Thu Apr 19, 2007 2:13 am


Return to V - Skyrim