Open main menu

UESPWiki β

Morrowind Mod:XGetSpell

< Mod / Morrowind: Morrowind Mod: MWSE

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.

SyntaxEdit

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

ExampleEdit

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