Morrowind Mod:XGetSpell

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

A function from MWSE update by Merzasphor.

Returns 1 if spellId is present, 0 otherwise. This is not a wrapper for GetSpell; it's a reimplementation. It only works for NPCs and the player.

Syntax[edit]

result (short): ref->xGetSpell spellId (string | string ref)

Example[edit]

long spellId
long target
short result
long target

setx target to xGetPCTarget
setx spellId to xStringBuild "summon golden saint"
setx result to target->xGetSpell spellId