There's a very good thing on EH ... can't remember if its a tute or in the FAQ. There's something in the comref too. They are not hard to use and as Armsty says will solve your problem perfectly.
The point is that that you attach the EH "killed" to the loon you don't want to die. If he does die, the EH detects who killed him: the script (written by you) called by the EH then checks to see who killed him and what the consequences should be.