Casting an Explosion
![]()
This tutorial seeks to teach the basics of spell chaining. By chaining spells, practitioners can use their projectile spells as a base for other spells, for instance, an explosion. All projectiles return a species called a ray result, which may contain an entity, a position vector, or both. This allows practitioners to chain effects affecting both entities and location.
In this tutorial, practitioners will cast Explosion. After casting a projectile spell, practitioners must pause the cursorium and wait until the projectile returns a result. After that, it is simply a matter of reading the result and providing a power level. The setup for the explosion is thus largely geared around casting the projectile and receiving the position.
This spell creates an explosion comparable to TNT wherever the Firebolt hits.
1) Sets up the firebolt cast, see Casting a Firebolt for further details.
2) Casts the firebolt and pauses the cursorium until the firebolt returns a result.
3) Reads the result’s location vector, and pushes an integer with value 4 onto the capsum.
4) With capsum: vec, 4, the spell now casts an explosion at the specified vector.