View Full Version : Creature death -----> conversation help

06-03-2009, 01:15 AM
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?

06-03-2009, 02:40 AM
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() {
And for a conversation started by a NPC:
void main() {
object oNPC=GetObjectByTag("npc_tag");
location lMe=GetLocation(GetFirstPC());
AssignCommand (oNPC,ActionForceMoveToLocation(lMe,FALSE));
AssignCommand (oNPC, ActionStartConversation(GetFirstPC()));

06-03-2009, 08:30 PM
Thanks. This'll really help.