Difference between revisions of "MagicItemHasEffect"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Fit to box)
imported>Haama
(Note on crashes)
Line 2: Line 2:
  (hasEffect:bool) MagicItemHasEffect effect:chars magicItem:ref
  (hasEffect:bool) MagicItemHasEffect effect:chars magicItem:ref
  (hasEffect:bool) MagicHasEffect effect:chars magicItem:ref
  (hasEffect:bool) MagicHasEffect effect:chars magicItem:ref
==Notes==
* 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.


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

Revision as of 17:30, 5 September 2007

MagicItemHasEffect - returns whether the magic item has an effect item with the specifed effect. Uses the 4 letter codes for the magic effects listed in the CS.

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

Notes

  • 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.

See Also