Jump to content

Home

A problem and a question


DarthJebus05

Recommended Posts

Problem:

 

I made a 2 line dialog for a recruitable NPC. It has the dialog, but it doesn't go into the 'movie like' dialog. It has the dialog box with the conversation. I hope that makes sense. This is also in the beginning room on the Endar Spire, if that has anything to do with it.

 

Question:

 

I want a NPC to run in behind Trask. And since the door closes behind Trask, how am I supposed to get my NPC in after Trask enters?

Link to comment
Share on other sites

Answer to question:

 

Use this script to make the NPC spawn and run into the room:

 

void main() 
{
//replace X.XX with the X co-ord Y.YY with the Y 
//and Z.ZZ with the Z
float x=X.XXf;  
float y=Y.YYf;
float z=Z.ZZf;
//r is the orientation
float r=0.0f;
vector vecNPC=Vector(x,y,z);
location locNPC=Location(vecNPC, r);
//replace resref_here with the NPC's resref
object oNPC=CreateObject(OBJECT_TYPE_CREATURE,"resref_here",locNPC);
object oPC=GetFirstPC();
AssignCommand(oNPC,ActionMoveToObject(oPC));
//the following will make the NPC talk to you when it arrives
//if you dont want it to talk remove the last line if you do
//replace my_dlg with the name of the conversation
AssignCommand(oNPC,ActionStartConversation(oPC,"my_dlg"));
}

 

 

(You can delete my "comments" (the bits with // before them))

-DDD

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...