I’m having a little problem getting a conversation to fire. I want the conv to fire when an NPC creature dies. My script works fine if the player controlled PC kills the creature. But if any other member of the party kills the creature then the script does not fire and the conversation does not start. Here’s a copy of the script I’m trying to work with, what am I doing wrong?
//Put this script OnDeath
void main()
{
object oPC = GetLastKiller();
while (GetIsObjectValid(GetMaster(oPC)))
{
oPC=GetMaster(oPC);
}
//if (!GetIsPC(oPC)) return;
object oTarget;
oTarget = GetObjectByTag("i8_sword_appearance_ipoint");
AssignCommand(oTarget, ActionStartConversation(oPC, "i8_sword_appearance"));
}
Thank you
Modifié par Alupinu, 17 juillet 2012 - 06:57 .