Open main menu

UESPWiki β

Morrowind Mod:XGetSpellEffectInfo

< Mod / Morrowind: Morrowind Mod: MWSE

A deprecated function from the MWSE update by Merzasphor.

Note: This function is deprecated, and will be removed in the future! Use xGetEffectInfo instead.

Returns info about one of the effects of the given spellId, -1 if the spellId is invalid or the index is out of range [1, numEffects]. To determine the number of valid effects, call xGetSpellInfo or xSpellList first.

SyntaxEdit

effectId (short) skillId (short) attributeId (short) rangeType (long) area (long) duration (long) minMagnitude (long) maxMagnitude (long): xGetSpellEffectInfo spellId (string | string ref) effectIndex (short)

rangeType: 0 = SELF, 1 = TOUCH, 2 = TARGET

ExampleEdit

short effect
short skill
short attrib
long range
long area
long duration
long min
long max

setx effect skill attrib range area duration min max to xGetSpellEffectInfo "trap_fire00" 1