There are a few ways, such as putting a counter on the creature's OnDeath script or check the area's heartbeat for creatures that still exist.
Area Heartbeat script
void main()
{
object oCreature = GetObjectByTag("TAG_OF_CREATURE");
if(!GetIsObjectValid(oCreature))
{
AddJournalQuestEntry("TAG_OF_JOURNAL_HERE", ##, GetFirstPC(), TRUE, FALSE, TRUE);
SetLocalInt(GetModule(), "den_evil", 10);
}
}
Creature's OnDeath script
void main()
{
int nNth = GetLocalInt(GetModule(), "den_evil");
nNth++;
SetLocalInt(GetModule(), "den_evil", nNth);
if (GetLocalInt(GetModule(), "den_evil") == 10)
{
AddJournalQuestEntry("TAG_OF_JOURNAL_HERE", ##, GetFirstPC(), TRUE, FALSE, TRUE);
}
}
FP!
Modifié par Fester Pot, 01 octobre 2010 - 04:17 .