Hello NWN-fans!
I have another problem in my module-making. I have two NPC's, both offer you something, and it's up to the PC who he decides to kill. One of the NPC's named Dantello is a mist dragon. He doesn't die in combat! He is not set to plot or immortal, has HP of 99 or something, but won't die. He'll just stick at "near death" for eternity. What could cause this? The other NPC, a succubus, does die.
I want a journal update to occur when the PC has killed one of the NPC's, it of course depends on the NPC what kind of journal update you get.
I made a script ondeath, but there are no journal updates. And since I have a TextAppearsWhen script in the NPC's for when one NPC is killed that checks for the journal update, the rest of the conversation "yay you killed bob" isn't firing.
I read something online about variable strings etc, but I don't get it.
Here is the ondeath script I made using Lilac Soul's system:
void main()
{
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3
For download info, please visit:
http://nwvault.ign.c...=4683&id=625   */
//Put this script OnDeath
object oPC = GetLastKiller();
while (GetIsObjectValid(GetMaster(oPC)))
{
oPC=GetMaster(oPC);
}
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
AddJournalQuestEntry("Urdu", 10, oPC, TRUE, FALSE);
AddJournalQuestEntry("Dantello", 2, oPC, TRUE, FALSE);
}
Also, can I set the NPC's to be plot characters and change them to being non-plot in conversation?
Thanks for the help.
Modifié par Eva_hop, 30 octobre 2010 - 05:31 .