Lua API
On this page

Enchantment

Inherits from

The Enchantment structure describes an active enchantment.

Fields:

Caster number

the object ID of the creature or item that cast this enchantment

Category number

the family of related spells this enchantment belongs to

DegradeLimit number

unknown

Duration number

the duration of the spell

HasSpellSetID number

Value greater or equal to 1 means we read spellSetID

Id LayeredSpellId

the spell ID of the enchantment

LastTimeDegraded number

the time when this enchantment was cast

PowerLevel number

the difficulty of the spell

SpellSetID number

Related to armor sets somehow?

StartTime number

the amount of time this enchantment has been active

StatMod StatMod

Stat modification information

Methods:

GetPropertyKeys() : string[]

Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts

Returns:string[]

ToString() : string

Returns a string that represents the current object.

Returns:string