Choose a 5th-level or lower-level spell you can cast. The casting time of the spell must be 1 action, and it must be able to target yourself. You cast the spell in the form of a “casual spell”, that is, as part of the trigger spell you cast, and simultaneously consume the spell slots of the spell and the trigger spell.
Contingency 5e
Level: 6th
Classes: Wizard
Casting Time: 10 minutes
Range: Self
Components: V, S, M
Duration: 10 days
The causal spell does not take effect immediately, but triggers its effect when a specific situation occurs. When you cast these two spells, you must describe the details of the trigger condition.
For example, proc and water breathing can be used together to ensure that underwater breathing can automatically trigger its effect when you are submerged in water or other liquids. The effect of the follow-up spell takes effect immediately when the corresponding situation first appears, regardless of whether you want to do so or not, after which the spell terminates.
The random spell can only work on you, even if it can usually specify other targets, it can no longer be specified now. You can only use one trigger at a time. If you cast the spell again while the spell has already been cast, the effect of the previous trigger will stop immediately. In addition, when the material component of the trigger spell is not on your character, its spell effect will also stop immediately.