Difference between revisions of "MagicItemHasEffectCountCode"
Jump to navigation
Jump to search
imported>Haama (Note on crashes) |
imported>WereWolf (Added obse link) |
||
Line 1: | Line 1: | ||
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | |||
MagicItemHasEffectCountCode - returns the count of effects with the specified effect code on the magic item. Uses a long value returned from GetNthEffectItemCode or GetMagicEffectCode. | MagicItemHasEffectCountCode - returns the count of effects with the specified effect code on the magic item. Uses a long value returned from GetNthEffectItemCode or GetMagicEffectCode. | ||
'''Syntax:''' | |||
(effectCount:short) MagicItemHasEffectCountCode effectCode:long magicItem:ref | (effectCount:short) MagicItemHasEffectCountCode effectCode:long magicItem:ref | ||
(effectCount:short) MagicItemHasEffectCountC effectCode:long magicItem:ref | (effectCount:short) MagicItemHasEffectCountC effectCode:long magicItem:ref | ||
Revision as of 17:04, 11 September 2007
A command for Oblivion Script Extender
MagicItemHasEffectCountCode - returns the count of effects with the specified effect code on the magic item. Uses a long value returned from GetNthEffectItemCode or GetMagicEffectCode.
Syntax:
(effectCount:short) MagicItemHasEffectCountCode effectCode:long magicItem:ref
(effectCount:short) MagicItemHasEffectCountC effectCode:long magicItem:ref
Notes
- 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, using MagicItemHasEffectCode on a non-magic item will not cause a crash.
- The same is probably true for MagicItemHasEffectCountCode.