Forced Greeting

Post » Fri May 27, 2011 9:28 pm

How can I force an NPC to talk to me when I get within a certain distance?

My objective is to come back from a quest to find my quest giver dead and have someone standing over him talk to me.

Cheers in advance.

Shadowform.
User avatar
Gavin Roberts
 
Posts: 3335
Joined: Fri Jun 08, 2007 8:14 pm

Post » Sat May 28, 2011 2:19 am

How can I force an NPC to talk to me when I get within a certain distance?

My objective is to come back from a quest to find my quest giver dead and have someone standing over him talk to me.

Cheers in advance.

Shadowform.


you'll want to have this on the script of the NPC in question
if (GetDistance, "player" <= 200 )    forcegreetingendif


you'll want to nest this if block in a "doonce" variable, and make sure it does not run in menumode.

adjust the number for getdistance as needed.
User avatar
Samantha hulme
 
Posts: 3373
Joined: Wed Jun 21, 2006 4:22 pm

Post » Sat May 28, 2011 8:19 am

you'll want to have this on the script of the NPC in question
if (GetDistance, "player" <= 200 )    forcegreetingendif


you'll want to nest this if block in a "doonce" variable, and make sure it does not run in menumode.

adjust the number for getdistance as needed.



Thanks. How cam I also add a Journal block too? Eg, to only activate when I certain Journal entry is met?
User avatar
Marie
 
Posts: 3405
Joined: Thu Jun 29, 2006 12:05 am

Post » Sat May 28, 2011 8:41 am

Thanks. How cam I also add a Journal block too? Eg, to only activate when I certain Journal entry is met?

yes you can indeed.

here is a link to Morrowind Scripting for Dummies, an invaluable resource.

http://www.tesnexus.com/downloads/file.php?id=13969

here is a quick link to all the functions you can use in scripting

http://www.uesp.net/wiki/Tes3Mod:Categorical_Function_List

and here's a forum thread with a large and rather helpful listing of tutorials and help resources for just about every aspect of modding morrowind

http://www.gamesas.com/index.php?/topic/24-comprehensive-tutorial-and-useful-link-list/
User avatar
Rebekah Rebekah Nicole
 
Posts: 3477
Joined: Fri Oct 13, 2006 8:47 pm

Post » Sat May 28, 2011 4:59 am

yes you can indeed.

here is a link to Morrowind Scripting for Dummies, an invaluable resource.

http://www.tesnexus.com/downloads/file.php?id=13969

here is a quick link to all the functions you can use in scripting

http://www.uesp.net/wiki/Tes3Mod:Categorical_Function_List

and here's a forum thread with a large and rather helpful listing of tutorials and help resources for just about every aspect of modding morrowind

http://www.gamesas.com/index.php?/topic/24-comprehensive-tutorial-and-useful-link-list/



Thanks, Man!
User avatar
Agnieszka Bak
 
Posts: 3540
Joined: Fri Jun 16, 2006 4:15 pm


Return to III - Morrowind