Here's the code (oCale is the companion):
AssignCommand(oCale, ClearAllActions(TRUE));
if (GetCurrentHitPoints(oCale) < 1)
{
EffectHealOnZeroHP(oCale, 10);
}
AssignCommand(oCale, ActionStartConversation(oPC, "conversation_cale_niledead", FALSE, FALSE, TRUE, FALSE));
So is this right? By the way, the conversation DOES start if Cale isn't dead. One thing I haven't tested yet is what happens if the PC is dead but Cale is alive when combat ends. I'm guessing it'll have the same problem, so maybe I need to deal with that case as well?
On another unrelated note, is it just me or is there no longer a search function in these forums? It was already hard to find before, but now I can't find it at all. What's up with that? I miss the old forums...





Retour en haut






