• Tutorials

  • Home
  • SpellCasterLevel

    Spells are of two schools: Magic User and Cleric. But often spells are cast by characters of other classes. Spells often have effects that are based on the caster's level. The engine needs to know which of the caster's levels should be used. These are the spell effects that depend on the caster's level:

    Whenever one of these effects is to be computed, this hook is available to define the level that is to be used in the computation. If the value returned by the script is non-empty then it will be used as the caster's level. Otherwise, in general, magic-user spells and cleric spells will use the corresponding levels of the caster.

    Parameters

    none

    Context

    Attacker - the character that cast the spell
    spell - the spell that is being cast