Jump to content

Home

Creature death -----> conversation help


I_Jedi

Recommended Posts

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

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

Archived

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

×
×
  • Create New...