Background for Skyrim SE

The Potion Script

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

    • 17 functions


    Inheritance Tree

    No indexed scripts extend this script.

    Properties

    No properties found.

      Events

        No events found.

      Functions

      • boolfunctionIsHostile()Native

        Returns whether this potion is considered hostile or not.

      • boolfunctionIsFood()Native

        Returns whether this potion is food. (This function requires SKSE)

      • boolfunctionIsPoison()Native

        Is this potion classified as Poison?

      • 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 Nth effect attached to this potion. (This function requires SKSE)

      • voidfunctionSetNthEffectArea(intindex, intvalue)Native

        Sets the area of the Nth effect attached to this potion. (This function requires SKSE)

      • voidfunctionSetNthEffectDuration(intindex, intvalue)Native

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

      • gets the use sound of this potion

      • float[]functionGetEffectMagnitudes()Native

        Returns the effects in order of magnitude attached to a potion. (This function requires SKSE)

      • int[]functionGetEffectAreas()Native

        Returns all the areas of this object in order

      • int[]functionGetEffectDurations()Native

        Gets the durations of the effects attached to this potion. (This function requires SKSE)

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