sekan Posted July 22, 2007 Share Posted July 22, 2007 I have made a script that makes an npc walk to you and start and convertion void main() { object oNPC=GetObjectByTag("jedim"); location lMe=GetLocation(GetFirstPC()); ActionDoCommand(SetCommandable(TRUE,oNPC)); AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE)); AssignCommand (oNPC, ActionStartConversation(GetFirstPC())); } 2 questions is there some errors in the script and where in the dialog shall i put the scirpt? Link to comment Share on other sites More sharing options...
tk102 Posted July 23, 2007 Share Posted July 23, 2007 There are no errors in the script. You would not put this script in the dialog however since the script must fire first so that dialog can begin. You'll have to use some other event like a trigger, an opening door, entering an area, the ending of some other conversation, etc. Link to comment Share on other sites More sharing options...
sekan Posted July 23, 2007 Author Share Posted July 23, 2007 Thanks tk102 . Oppening door could work but what if the doors in the module are open? Is there som way to close them? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.