Page 1 of 1

Issue: essential NPCs can die?

Posted: Fri Oct 30, 2009 8:35 am
by mimir
Well, I was tired of losing my followers so quickly after recruiting them, so I simply made two of them (a mage apprentice and a DB murderer) essential. It worked fine for the DB murderer. The mage apprentice, however, remained killable anyway. I've checked her script and AI but yet to find any clue about it.

I don't know if this is relative, but I could loot her body, despite the fact that her 'Can Corpse Check' box was unchecked. (MGMageApprentice8 being her editor ID)

Anyone can help?

Thanks!

Re: Issue: essential NPCs can die?

Posted: Sun Nov 01, 2009 5:50 am
by jwernecke
I don't know if this is relative, but I could loot her body, despite the fact that her 'Can Corpse Check' box was unchecked. (MGMageApprentice8 being her editor ID)
The "Can Corpe Check" box is only relative to the NPC. That is HER ability to corpse check.

As far as her still dying, if the "Essential" box is checked then she shouldn't die.

Her script should only have to do with what dialogue she uses and if you will get the "follow me" option.
Spoiler:
Scriptname ArcaneUApprentice8Script
Begin Gamemode
if ( Player.GetFactionRank MagesGuild < 9 ) //basically you have to be the arch-mage
return
endif
if ( MageConvSystem.ArchFollower == 0 )
if ( MageConvSystem.Student8Var == 1 )
set MageConvSystem.ArchFollower to 1//what dialogue she is to use
endif
endif
End
Begin OnDeath
if ( MageConvSystem.Student8Var > 0 )
set MageConvSystem.clear to 1 //if she dies then the dialogue options reset
endif
End
Begin OnDeath Player
If GetStage TG05Misdirection >= 15 && GetStage TG05Misdirection < 60
Set TG05Misdirection.TotalDead to TG05Misdirection.TotalDead + 1
SetStage TG05BloodPrice 50//if YOU die then the dialogue options reset
EndIf
End
Hope all of that helps.