Open main menu

UESPWiki β

Morrowind Mod:XGetSpellInfo

< Mod / Morrowind: Morrowind Mod: MWSE

A function from MWSE update by Merzasphor.

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

SyntaxEdit

name (string ref) type (short) cost (short) numEffects (short) flags (long): xGetSpellInfo spellId (string | string ref)

type: 0 = SPELL, 1 = ABILITY, 2 = BLIGHT, 3 = DISEASE, 4 = CURSE, 5 = POWER
flags: (combination of these values) 1 = AUTOCALC, 2 = PCSTART, 4 = ALWAYSSUCCEEDS

ExampleEdit

long name
short type
short cost
short effects
long flags

setx name type cost effects flags to xGetSpellInfo "trap_fire00"