Couldn't you drop a gatestone prior to running the script and if you die, just use the portal to hop right back into the boss room?

I imagine for this to work well, one would need pretty decent weapon binded there(witch I dont, I hate dung with all my life).