I was wondering if in the past our party could have prepared better to fight a potentially deadly foe. We had time to prepare for this and could have used a Glyph of Warding or two, but we didn't. We had a day to prepare for the fight as I recall. The short version of what happened is that we had a TPK (total party kill) when facing a dragon. Some were lost outright and a couple of us were restored to life from a couple of charred bones by a "court of healers" - which was quite magnanimous of our DM really.
I've been mulling this over recently while reading other questions and wondered about how we could have prepared better.
My question is whether we could have used Glyph of Warding to prevent the TPK.
Could we have set up a spell like Healing Word (range of 60 ft.) to be triggered when a particular PC's hit points went down to 0 hit points, died? Or, a spell like Aura of Life (range of self) with the Glyph of Warding to be triggered when the first PC was killed? (PHB, pp. 216, 250, 267)
I could see how both of these spells in a Glyph of Warding would have saved our bacon but want to check whether this would have been possible.