Nice work you have done here with this battle system. It fits perfectly in the place of some edditings I myself have been trying to do, but my scripting skills are very limited so I will be using your system instead.
I see you have done lots of considerations and mostly everything works fine but there is a major problem with the death state. I'll write bellow the step-by-step case I have encountered.
1) Enter a battle and have one of your party members killed.
2) Win the battle.
3) Enter another battle. - The dead character won't be displayed (shouldn't he be displayed with his death state?)
4) Worse still, if you try to use an item or skill to bring him back, the game will display his death animation (even tough he is no longer dead) and will only update to his proper graphic on his next turn in battle. Until then He'll still be in his death state animation.
This won't happen if you ressurect him in the same battle that he died, or if you ressurect him outside of battle. The case listed above seems to be the only death case you didn't account for in your script. Would you fix it in your next release? It would be really helpful! Thanks for your time.