Difference between revisions of "MagicItemHasEffect"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
imported>Haama
(→‎Notes: Fixed as of v0013)
Line 12: Line 12:
* Using '''MagicItemHasEffect''' on a magic item that doesn't have any effects (for instance, after using [[RemoveAllEffectItems]] on the item) will cause Oblivion to crash.
* Using '''MagicItemHasEffect''' on a magic item that doesn't have any effects (for instance, after using [[RemoveAllEffectItems]] on the item) will cause Oblivion to crash.
** However, using '''MagicItemHasEffect''' on a non-magic item will not cause a crash.
** However, using '''MagicItemHasEffect''' on a non-magic item will not cause a crash.
**This has been fixed as of v0013.


==See Also==
==See Also==

Revision as of 00:09, 26 November 2007

A command for Oblivion Script Extender

Syntax:

(hasEffect:bool) MagicItemHasEffect effect:chars magicItem:ref
(hasEffect:bool) MagicHasEffect effect:chars magicItem:ref

Returns whether the magic item has an effect item with the specifed effect.

Notes

  • Uses the 4 letter codes for the magic effects listed in the CS.
  • Using MagicItemHasEffect on a magic item that doesn't have any effects (for instance, after using RemoveAllEffectItems on the item) will cause Oblivion to crash.
    • However, using MagicItemHasEffect on a non-magic item will not cause a crash.
    • This has been fixed as of v0013.

See Also