I'm trying to get a conversation to automatically start with NPC 2 after the death of NPC 1 (in a fight with the PC), but nothing's happening.
I added this code to the default OnDeath script for NPC 1 (saved a new version so I didn't overwrite the original and changed the script setting in the NPC properties):
object oNPC = StringToObject("n_stepmother");
object oPC = GetFirstPC();
object oCale = StringToObject("c_human_cale");
if (GetIsObjectValid(oNPC)) //if NPC2 is still alive
if (GetFactionAverageReputation(oNPC, oPC) > 0) //and she's still friendly
{
ActionStartConversation(oCale, "conversation_cale_finloralive", FALSE, FALSE, FALSE, FALSE);
}
else
{
ActionStartConversation(oCale, "conversation_cale_niledead", FALSE, FALSE, FALSE, FALSE);
}
Is the 2nd if statement wrong? Or do I need to do something else with this script - is simply adding this code in there not a good way of doing it?





Retour en haut






