Background for Skyrim SE

The Spell Script

    The Spell script is a part of Skyrim SE’s Papyrus scripting ecosystem. It is included with the base game, and is extended/modified by modded sources such as Skyrim Script Extender x64 (SKSE).

    For this script, the Papyrus index knows about:

    • 24 functions


    Inheritance Tree

    No indexed scripts extend this script.

    Properties

    No properties found.

      Events

        No events found.

      Functions

      • voidfunctionCast(ObjectReferenceakSource, ObjectReferenceakTarget=NONE)Native

        Casts this spell from the specified object reference, optionally toward a target object reference.

      • voidfunctionRemoteCast(ObjectReferenceakSource, ActorakBlameActor, ObjectReferenceakTarget=NONE)Native

        Casts this spell from the specified object reference with a specified Actor getting the "blame" for the spell if it could cause a crime to occur, optionally toward a target object reference.

      • boolfunctionIsHostile()Native

        Returns whether this spell is considered hostile or not.

      • voidfunctionPreload()Native

        Preload the art for this spell. Useful for spells you equip & unequip on the player.
        Warning: Misuse of this function can lead to erroneous behavior as well as excessive
        memory consumption. It's best to avoid using this. This function will likely be
        deprecated in the future.

      • voidfunctionUnload()Native

        Unload the art for this spell. Call this only if you've previously called Preload.
        Warning: Misuse of this function can lead to erroneous behavior including spell art
        being unloaded while in use, and excessive memory consumption. It's best to avoid using this.
        This function will likely be deprecated in the future.

      • floatfunctionGetCastTime()Native

        Returns the time in seconds this spell or scroll takes to cast. (This function requires SKSE)

      • PerkfunctionGetPerk()Native

        return the perk associated with the spell

      • intfunctionGetNumEffects()Native

        Returns the number of effects on this enchantment, ingredient, potion, or spell. (This function requires SKSE)

      • floatfunctionGetNthEffectMagnitude(intindex)Native

        Returns the magnitude of the Nth effect attached to this enchantment, ingredient, potion, or spell. (This function requires SKSE)

      • intfunctionGetNthEffectArea(intindex)Native

        Returns the area of the Nth effect attached to this enchantment, ingredient, potion, or spell. (This function requires SKSE)

      • intfunctionGetNthEffectDuration(intindex)Native

        Returns the duration of the Nth effect attached to this enchantment, ingredient, potion, or spell. (This function requires SKSE)

      • MagicEffectfunctionGetNthEffectMagicEffect(intindex)Native

        Returns the Nth MagicEffect attached to this enchantment, ingredient, potion, or spell. (This function requires SKSE)

      • intfunctionGetCostliestEffectIndex()Native

        Returns the index of the costliest effect on an enchantment, ingredient, potion, or spell. (This function requires SKSE)

      • intfunctionGetMagickaCost()Native

        return the base magicka cost of the spell

      • intfunctionGetEffectiveMagickaCost(Actorcaster)Native

        Returns the effective magicka cost of the spell for the given caster.

      • voidfunctionSetNthEffectMagnitude(intindex, floatvalue)Native

        Sets the magnitude of the specified effect.

      • voidfunctionSetNthEffectArea(intindex, intvalue)Native

        Sets the area of the specified effect.

      • voidfunctionSetNthEffectDuration(intindex, intvalue)Native

        Sets the duration of the specified effect.

      • EquipSlotfunctionGetEquipType()Native

        Returns the particular equipslot type

      • voidfunctionSetEquipType(EquipSlottype)Native
      • float[]functionGetEffectMagnitudes()Native

        Returns all the magnitudes of this object in order

      • int[]functionGetEffectAreas()Native

        Returns all the areas of this object in order

      • int[]functionGetEffectDurations()Native

        Returns all the durations of this object in order

      • MagicEffect[]functionGetMagicEffects()Native

        Returns all the magic effects of this object in order

      Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.