Well, I was about to contribute writing about my hack there but gira got first in my place :D
But anyway, that hack I made is basically made to remove all the pokemon in party that have 0 HP, each time a map is loaded. It also has the battle endings changed so that when you would normally "black out", a "game over music" is played and the text box will keep displaying text string "GAME OVER!!!" and the script continues by calling an infinite loop (so that the player can't do a thing).
But although it's a bit different, it somewhat sticks to the rules.
This would totally require finding enough space in ram for fitting in such table first though.