OnDeath event script triggering
Just getting back into NWN after 20+ yrs of absence. I'm more of a designer than a player. Back when I was coding NWN, I ran an online persistent world. I knew my coding backwards and frontwards. I'm a bit rusty these days. I'm in the process of writing a low level quest and part of the quest requires the killing of a creature. I'm using the following code in the OnDeath event of the creature, but it doesn't seem to be firing. It's just simple code to change the entry in the quest journal and change a PC variable that keeps track of quest progression. I could really use some help figuring out why this isn't working.
void main()
{
object oKiller = GetLastKiller();
AddJournalQuestEntry("koobylite",3,oKiller);
SetLocalInt(oKiller,"koobylite",3);
}
void main()
{
object oKiller = GetLastKiller();
AddJournalQuestEntry("koobylite",3,oKiller);
SetLocalInt(oKiller,"koobylite",3);
}
0