Script Help: Forcing NPC to start a conversation

Post » Sat Nov 17, 2012 9:35 pm

Back in Oblivion it was easy to force an NPC to start a conversation at a given stage. What I want to do is every 24 hours have the companion approach the player and say a line of dialog. Something like this;

If 24 hours have passed
StartConversation player, Stage10Topic

What's the Papyrus equal to this? I can't seem to find anything in the language references. The old wiki was a lot better. Any help appreciated.
User avatar
Beth Belcher
 
Posts: 3393
Joined: Tue Jun 13, 2006 1:39 pm

Post » Sun Nov 18, 2012 10:06 am

You want to make a ForceGreet AI package and apply appropriate conditions to it, so it runs every 24h, and assign it to your NPC.

http://www.creationkit.com/ForceGreet_(Package_Template)
http://www.creationkit.com/ForceGreet_(Procedure)
User avatar
jason worrell
 
Posts: 3345
Joined: Sat May 19, 2007 12:26 am

Post » Sun Nov 18, 2012 6:17 am

Well the problem of doing it that way is that this is a companion that will always be with the player. The other problem is that there are over 80 stages in the romance quest. I'm think of something like the Say procedure but I have no code samples and this is the first script I've ever written.
User avatar
ashleigh bryden
 
Posts: 3446
Joined: Thu Jun 29, 2006 5:43 am

Post » Sun Nov 18, 2012 7:45 am

Something like this?

Event Stage20Event()	    If GameDay.GetValueInt() > iGameDay ; It is the next day   	 aaViconiaRef.Say Stage20Topic Player   EndIfEndEvent
User avatar
flora
 
Posts: 3479
Joined: Fri Jun 23, 2006 1:48 am

Post » Sun Nov 18, 2012 6:42 am

User avatar
Chavala
 
Posts: 3355
Joined: Sun Jun 25, 2006 5:28 am

Post » Sat Nov 17, 2012 11:38 pm

Well the problem of doing it that way is that this is a companion that will always be with the player. The other problem is that there are over 80 stages in the romance quest. I'm think of something like the Say procedure but I have no code samples and this is the first script I've ever written.

I fail to see the problem here. Make an AI package. :)

Though remember, the dialogue bug might cause the package to not run.
User avatar
Arnold Wet
 
Posts: 3353
Joined: Fri Jul 07, 2006 10:32 am

Post » Sun Nov 18, 2012 2:48 am

I guess I'm just overwhelmed with the changes in the scripting. Everything has changed so drastically I feel like a two year old because I used to have this stuff down and now with Skyrim I'm a 1 zillion percent noob. I need to actually see an example in front of me to get me started I guess. I'm that lost. The tutorials are fine but none do what I want to do, which is simply; there are 80+ stages, at the beginning of each stage the follower goes to the player and blurts out a line that starts the series of dialog topics. The stage then advances and 24 hours later the next stage fires.
User avatar
mishionary
 
Posts: 3414
Joined: Tue Feb 20, 2007 6:19 am

Post » Sun Nov 18, 2012 3:09 am

I think I figured out an easier way around this. I can simply create a hello topic for every quest stage. I should be able to get it to link properly to the other dialogs at that point. I don't like doing it this way but if it works, it works. I guess I'll see.
User avatar
ZANEY82
 
Posts: 3314
Joined: Mon Dec 18, 2006 3:10 am

Post » Sun Nov 18, 2012 6:39 am

I'm trying to add the ForceGreet package to the NPC's Package AI tab. I right click and add the right package but it doesn't appear in the list. Help!
User avatar
Arnold Wet
 
Posts: 3353
Joined: Fri Jul 07, 2006 10:32 am

Post » Sun Nov 18, 2012 3:28 am

Here is an image of the package in question:

http://www.4shared.com/photo/o5bnQmUX/Package.html
User avatar
Lillian Cawfield
 
Posts: 3387
Joined: Thu Nov 30, 2006 6:22 pm

Post » Sun Nov 18, 2012 5:34 am

I fixed it. I had a quest assigned to the package.
User avatar
Sara Lee
 
Posts: 3448
Joined: Mon Sep 25, 2006 1:40 pm


Return to V - Skyrim