Nick Vader Posted October 28, 2009 Share Posted October 28, 2009 When the pc enters a module (eg: Endar Spire), how can I get the pc to instantly start a dialog with an npc (eg: Trask, with TagResRef: trask)? Please post answers as I leave my work in the middle waiting for answers... Thank you. Nick-Vader. Link to comment Share on other sites More sharing options...
Canderis Posted October 28, 2009 Share Posted October 28, 2009 In the onenter slot for the module. It can be found in the ARE file. You put in a script like: void main() { object oNPC=GetObjectByTag("[color="DarkRed"]npc_tag[/color]"); location lMe=GetLocation(GetFirstPC()); ActionDoCommand(SetCommandable(TRUE,oNPC)); AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE)); AssignCommand (oNPC, ActionStartConversation(GetFirstPC())); } In than npc's utc file put in the name for the dialog in the conversation slot. Link to comment Share on other sites More sharing options...
Nick Vader Posted October 28, 2009 Author Share Posted October 28, 2009 In the onenter slot for the module. It can be found in the ARE file. You put in a script like: void main() { object oNPC=GetObjectByTag("[color="DarkRed"]npc_tag[/color]"); location lMe=GetLocation(GetFirstPC()); ActionDoCommand(SetCommandable(TRUE,oNPC)); AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE)); AssignCommand (oNPC, ActionStartConversation(GetFirstPC())); } In than npc's utc file put in the name for the dialog in the conversation slot. Thnx. I thought I'd have to wait for days to get an answer ! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.