Difference between revisions of "MagicItemHasEffect"
Jump to navigation
Jump to search
imported>DragoonWraith (ME) |
imported>DragoonWraith m (Reverted edits by DragoonWraith (Talk); changed back to last version by Haama) |
||
Line 24: | Line 24: | ||
[[Category:Magic Functions]] | [[Category:Magic Functions]] | ||
[[Category:Magic Functions (OBSE)]] | [[Category:Magic Functions (OBSE)]] | ||
Revision as of 20:00, 1 March 2008
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.