This might be a bad way to do it, but why wont you 1st set a variable to the hero. Then, I made this into 3 triggers:
Basically, it checks if the hero is alive, and if he is, it destroys the box...I think this will work....but since I haven't been map-making recently/not a good JASSer there might be an easier way to do this.