Background for Skyrim SE

The WornObject Script

    The WornObject script is a part of Skyrim SE’s Papyrus scripting ecosystem. This script is not present in the vanilla game, but can be found in modded sources like Skyrim Script Extender x64 (SKSE).

    For this script, the Papyrus index knows about:

    • 14 functions


    Inheritance Tree

    No indexed scripts extend this script.

    Properties

    No properties found.

      Events

        No events found.

      Functions

      • floatfunctionGetItemHealthPercent(ActorakActor, inthandSlot, intslotMask)NativeGlobal

        Tempering

      • voidfunctionSetItemHealthPercent(ActorakActor, inthandSlot, intslotMask, floathealth)NativeGlobal
      • voidfunctionSetItemMaxCharge(ActorakActor, inthandSlot, intslotMask, floatmaxCharge)NativeGlobal

        Charges
        Only works on items that have user-enchants

      • floatfunctionGetItemMaxCharge(ActorakActor, inthandSlot, intslotMask)NativeGlobal

        Works on any enchanted item

      • floatfunctionGetItemCharge(ActorakActor, inthandSlot, intslotMask)NativeGlobal
      • stringfunctionGetDisplayName(ActorakActor, inthandSlot, intslotMask)NativeGlobal

        Returns the name of this reference
        this is the name that is displayed

      • boolfunctionSetDisplayName(ActorakActor, inthandSlot, intslotMask, stringname, boolforce=false)NativeGlobal

        Sets a reference's display name
        returns false if force is false and the reference
        is held by an alias using 'Stored Text' or 'Uses Stored Text'
        Text Replacement does not use this name and may be lost if forced

      • EnchantmentfunctionGetEnchantment(ActorakActor, inthandSlot, intslotMask)NativeGlobal

        Returns the player-made enchantment if there is one

      • voidfunctionSetEnchantment(ActorakActor, inthandSlot, intslotMask, Enchantmentsource, floatmaxCharge)NativeGlobal

        Changes an item's player-made enchantment to something else
        None enchantment will remove the existing enchantment
        does not delete the custom enchantment, only removes it

      • voidfunctionCreateEnchantment(ActorakActor, inthandSlot, intslotMask, floatmaxCharge, MagicEffect[]effects, float[]magnitudes, int[]areas, int[]durations)NativeGlobal

        Creates a new enchantment on the item given the specified parameters
        all arrays must be the same size
        created enchantments are not purged from the save when removed or overwritten
        exact same enchantments are re-used by the game

      • intfunctionGetNumReferenceAliases(ActorakActor, inthandSlot, intslotMask)NativeGlobal

        Returns the number of ref aliases holding this reference

      • ReferenceAliasfunctionGetNthReferenceAlias(ActorakActor, inthandSlot, intslotMask, intn)NativeGlobal

        Returns the nth ReferenceAlias holding this reference

      • PotionfunctionGetPoison(ActorakActor, inthandSlot, intslotMask)NativeGlobal

        Returns the poison on the specified item

      • ReferenceAlias[]functionGetReferenceAliases(ActorakActor, inthandSlot, intslotMask)NativeGlobal

        Returns all of the ReferenceAlias holding this reference

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