I_Jedi Posted June 3, 2009 Share Posted June 3, 2009 I need help with finding the correct code for a script. What script or scripts would help me (for KOTOR 2) start a conversation after I kill a creature? The scenario: I get into a fight with a czerka employee. Then another czerka employee starts a unique conversation not available before with me and causes an effect. Later, I can access the unique conversation again. Any tips? Link to comment Share on other sites More sharing options...
R2-X2 Posted June 3, 2009 Share Posted June 3, 2009 In a creature's .utc file, go under the "Scripts" tap, and insert your script into the "OnDeath" field. The script for just a conversation is: void main() { ActionStartConversation(GetFirstPC(),"[color="Red"]dlg_filenamehere[/color]"); } And for a conversation started by a NPC: void main() { object oNPC=GetObjectByTag("[color="Cyan"]npc_tag[/color]"); location lMe=GetLocation(GetFirstPC()); ActionDoCommand(SetCommandable(TRUE,oNPC)); AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE)); AssignCommand (oNPC, ActionStartConversation(GetFirstPC())); } Link to comment Share on other sites More sharing options...
I_Jedi Posted June 4, 2009 Author Share Posted June 4, 2009 Thanks. This'll really help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.