Difference between revisions of "MagicItemHasEffectCode"

Jump to navigation Jump to search
19 bytes removed ,  12:46, 14 September 2007
no edit summary
imported>WereWolf
(Fixed format & added OBSE link)
imported>WereWolf
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
 
MagicItemHasEffectCode - returns whether the magic item has an effect item with the specified effect code. Uses a long value returned from GetNthEffectItemCode or GetMagicEffectCode.▼
 
'''Syntax:'''
 
(hasEffect:bool) MagicHasEffectC effectCode:long magicItem:ref
 
▲MagicItemHasEffectCode - returnsReturns whether the magic item has an effect item with the specified effect code. Uses a long value returned from GetNthEffectItemCode or GetMagicEffectCode.
 
==Notes==
* Uses a long value returned from [[GetNthEffectItemCode]] or [[GetMagicEffectCode]].
* Using '''MagicItemHasEffectCode''' on a magic item that doesn't have any effects (for instance, after using [[RemoveAllEffectItems]] on the item) will cause Oblivion to crash.
** However, usingUsing '''[[MagicItemHasEffectCode''']] on a non-magic item willthat notdoesn't have any effects (for instance, after using [[RemoveAllEffectItems]] on the item) will cause aOblivion to crash.
** However, using [[MagicItemHasEffectCode]] on a non-magic item will not cause a crash.
 
==See Also==
Anonymous user

Navigation menu