Background for Skyrim SE

The Enchantment Script

    The Enchantment 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:

    • 13 functions


    Inheritance Tree

    No indexed scripts extend this script.

    Properties

    No properties found.

      Events

        No events found.

      Functions

      • boolfunctionIsHostile()Native

        Returns whether this enchantment is considered hostile or not.

      • 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)

      • 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

      • returns the base enchantment of this enchantment

      • Returns a Formlist of Keywords

      • voidfunctionSetKeywordRestrictions(FormListnewKeywordList)Native

        Sets the FormList of keywords

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