Having NPCs talk from a script?

Post » Thu Jan 23, 2014 9:31 pm

:Topic:

I'm making a mod to do follower commands via hotkeys, and I would like to ideally have the npc say their typical line when you say, try to trade. Getting their inventory open is straightforward, but how would I go about getting htem to talk? Preferably using the DialogFollowerScript quest or whatever other means I can to make it generic and universal?

User avatar
Siobhan Wallis-McRobert
 
Posts: 3449
Joined: Fri Dec 08, 2006 4:09 pm

Post » Thu Jan 23, 2014 11:38 am

You can use the http://www.creationkit.com/Say_-_ObjectReference function.

User avatar
N3T4
 
Posts: 3428
Joined: Wed Aug 08, 2007 8:36 pm

Post » Thu Jan 23, 2014 4:08 pm

You sir are a saint. Spent probably 3 hours fumbling around looking at a thousand different things, no idea how I missed that.

Next question which I assume the answer is no to... is there any way to detect if nothing happens?

I guess I'll have to make seperate function calls depending on if I hope/expect Say() with a specific topic works and if not, resort to the generic no-feedback method I had before.

User avatar
Robert
 
Posts: 3394
Joined: Sun Sep 02, 2007 5:58 am


Return to V - Skyrim