(I'm using Zelda Classic 2.50.02 on Windows 10, for those who are concerned)
I want to create a shutter or object that seals, preventing Link from getting to the next room when he takes damage from enemies, forcing Link to leave the room and have to reenter the room to attempt the room's challenge again. The switch or shutter is triggered by general purpose flags 98 - 102 that activate when Link takes damage.
An argument for "how many hits taken" would be nice too for flexibility. It would be nice if this script could play a custom sfx when Link has failed the room by taking too much damage.
If you have any further questions, let me know.