The spell glyph of warding states:
Casting time: 1 hour
[…]
You can store a prepared spell of 3rd level or lower in the glyph by
casting it as part of creating the glyph […] If you create a spell glyph, you can store any spell of up to the same level as the slot you use for
the glyph of warding.(PHB 246)
Can you cast a spell with a casting time of 1 hour or longer as part of casting a 1 hour spell? If yes, would this make the casting time of the glyph 1 hour + the casting time of the stored spell? Or is this a way to shorten casting times for 200gp a piece?
Best Answer
You can store any spell of the appropriate level in the glyph of warding*
Glyph of warding states (emphasis mine):
Any spell means that there is no restriction* (including longer casting times) of what spell can be cast stored in a glyph of warding.
The secondary spell is cast as you are creating the glyph, not as you are casting the glyph. The glyph is a spell effect you inscribe after you cast the spell (it's an effect that can only come into existence as a result of a successful casting).
If we compare this with the wording of Contingency which requires simultaneous casting (emphasis mine):
The wording of Contingency requires the contingent spell be cast (ie casting completed) during the casting of contingency.
As a result, as part of the inscription process, the secondary spell must be cast. This means the total time spent casting spells for a successful spell glyph of warding is 1 hour + the casting time of the spell to be stored.
*That is, provided the spell meets the targeting criteria for glyph of warding holding the spell, which is: