DarthJebus05 Posted February 10, 2008 Share Posted February 10, 2008 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 More sharing options...
Marius Fett Posted February 10, 2008 Share Posted February 10, 2008 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 More sharing options...
DarthJebus05 Posted February 11, 2008 Author Share Posted February 11, 2008 Is there any other scripts that I can use that I don't have to spawn the NPC in the same script? What I want to do: I want to add my NPC to the .git file to spawn it that way (I can do this already). Then make a script to run from where he spawned to the PC. Link to comment Share on other sites More sharing options...
Marius Fett Posted February 11, 2008 Share Posted February 11, 2008 You would have to make a waypoint inside the PC's room, and use the ActionMoveToLocation function to make the NPC run to the waypoint. Link to comment Share on other sites More sharing options...
DarthJebus05 Posted February 11, 2008 Author Share Posted February 11, 2008 Thanks DDD. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.