Difference between revisions of "MagicItemHasEffect"

20 bytes removed ,  14:07, 14 September 2007
no edit summary
imported>WereWolf
(Fixed format & added OBSE link)
imported>WereWolf
Line 1: Line 1:
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
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.


'''Syntax:'''
'''Syntax:'''
Line 7: Line 5:


  (hasEffect:bool) MagicHasEffect 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==
==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.
* 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.
Anonymous user