I'm so glad and grateful that you have been able to code so much already.
Actually I do believe in resurrecting Khalid and in fact Gorion if the PC chooses. You can peruse some of my ideas:
http://www.shsforums.net/topic/58190-some-...e-to-see-exist/http://www.shsforums.net/topic/58336-3-mor...de-railroading/I had a third topic but it got lost in the shs server crash.
By the way, if we lose contact on this forum you can always reach me at billbisco AT gmail DOT com
I don't necessarily expect players to want Erevain if they didn't already take him. Alternatively, they may never have found the dialogue to bring him or they may have pissed him off and he wouldn't join. Players may alternatively feel sorry for him and want to resurrect him or they may want to be cruel and resurrect him only to kill him off again.
Consider also as I've envisioned it, if the party takes Erevain and kicks him out, if the party takes too long, he'll disappear and appear dead in Dragon's Eye. They may change their minds and want him back.
Alternatively, when the game eventually returns back to IWD, they may decide they need to change party members.
Basically, I'm a big believer in freedom and options for the player if it makes sense. I believe being able to resurrect Erevain makes sense and that it would be fun for players to do so if they wanted to.
The more robust method (any NPC dies and they drop a body might require patching every area script to drop an NPC body item when he dies and then patching every priest to add a dialogue option to consume the NPC item and bring him/her back.
I recognize that this might be difficult to achieve. There has been another modder who made some progress on the matter
http://gibberlings3.net/forums/index.php?s...85&p=249048