Morrowind Mod:XGetEnchantInfo

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

A function from MWSE update by Merzasphor.

Returns info about the given enchantId, 0 if enchantId is invalid.

Syntax[edit]

type (short) cost (short) maxCharge (long) numEffects (short) autocalc (long): xGetEnchantInfo enchantId (string | string ref)

type: 0 = Cast Once, 1 = Cast When Strikes, 2 = Cast When Used, 3 = Constant
autocalc: 0 = off, 1 = on

Example[edit]

short type
short cost
long maxCharge
short numEffects
long autocalc

setx type cost charge maxCharge numEffects autocalc to xGetEnchantInfo "admonition_en"