Issue: essential NPCs can die?

Discussions and questions about the CS and mods for Oblivion
Locked
mimir
Layman
Layman
Posts: 1
Joined: Fri Oct 30, 2009 7:36 am
ES Games: Morrowind, Oblivion
Platform: PC

Issue: essential NPCs can die?

Post 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!
jwernecke
Novice
Novice
Posts: 60
Joined: Mon Aug 31, 2009 7:03 pm
ES Games: Oblivion, Skyrim
Platform: PS3, PC

Re: Issue: essential NPCs can die?

Post 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.
Serve your Listener...walk with me and Sithis.....

...whenever any form of government becomes destructive to these ends, it is the right of the people to alter or to abolish it, and to institute new government...
Locked