Difference between revisions of "MagicItemHasEffect"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Note on crashes)
imported>WereWolf
(Fixed format & added OBSE link)
Line 1: Line 1:
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
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.
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.
'''Syntax:'''
  (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



Revision as of 16:54, 11 September 2007

A command for Oblivion Script Extender

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.

Syntax:

(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