Casting Context
"More often than not, casting a spell will start from the Self."
"Whether it be a human caster, a construct, or something else entirely, the Self is how we perceive the world, and as such, it is the lens through which we view our magic."
-- An excerpt from a lecture by Prof. Citrine.
Positioning Delusion
-> Vector
Returns the location the spell is being cast from.
Directional Delusion
-> Vector
Returns the direction the caster is facing as a unit vector.
Reflection Delusion
-> Entity
Returns the entity casting the spell, if available.
Authority Delusion
-> Number
Returns the amount of mana directly available to the spell.
This delusion counts the amount of mana in all mana-carrying items the caster is holding or wearing, including Knots and Whorls .
When cast from a Spell Construct , only the mana in the Construct's one Knot slot is counted.
Crowning Delusion
-> Number
Returns the maximum amount of mana that the caster of the spell can store. Works similarly to the previous delusion.
Delusion of Order
-> Number | Void
Returns the spell slot running this spell, or void if this spell is not running in a spell slot.
Macro Delusion
-> {Pattern: Spell}
Returns a map containing the combined maps of all rings worn, with any entries that aren't valid macros filtered out.
The result of this trick is equal to the map used when evaluating macros.
See the entry on Macros for more details.
Framed Delusion
-> Number
Returns the selected hotbar slot of the caster, if available.
Dimensional Delusion
-> Dimension
Returns the dimension where this spell is being cast.