Morrowind Mod:GetSpell

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


GetSpell

                GetSpell, SpellID

       Where:   SpellID = The spell you wish to check for.

        Type:   Magic

     Returns:   short

     Example:   if ( GetSpell, shield == 1 )
                set sValue to ( "dorisa darvel"->GetSpell "Swamp Fever" )

     Scripts:   dinScript
                letteScript

Returns 1 if the calling object has the spell in their inventory, or 0 otherwise. This may work in a similar manner to AddSpell and RemoveSpell where if the spell is a normal one, it merely checks if the calling actor knows it. If the spell is a disease or curse, however, it may check if the calling actor is under the spell's effect.

See Also: GetEffect, GetSpellEffects