You can also get around this without have to use variables. :3
Create this as a common event:
Basically, what I've done is started creating a chain of conditional branches based on whether each actor has the "Death" state. If the first actor doesn't have it, then there is another conditional branch under the "else" option of that conditional branch which checks for the next actor. If any of them are a yes, then it turns on a switch and then exits processing (if you experience any problems, try removing the "Exit Event Processing" command - I assume it would only exit the event that it's a part of, but it might exit all event processing, which you wouldn't want!). At the end of the conditional branches, in the last else, make sure you turn the switch off! Otherwise, if a party member is dead ever and the player tries to transfer, they'll be stuck.
Then, in your transfer events, use the "Call Common Event..." command, then create a conditional branch after that based on whether or not the switch is on. Putting it in a common event keeps you from having to copy/paste the huge chain of conditional branches. xD I would have given you a screenshot, but one of the limitations of VX Ace Lite Edition is that I can't call comment events with that command! If you have the full version, you can use it, though.