Difference between revisions of "MagicItemHasEffectCount"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(Fixed syntax & added obse link)
imported>DragoonWraith
(MI)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]


MagicItemHasEffectCount - returns the count of the specified effects on the magic item.
'''Syntax:'''
(effectCount:short) MagicItemHasEffectCount effect:chars magicItem:ref


'''Syntax:'''
Returns the count of the specified effects on the magic item.
(effectCount:short) MagicItemHasEffectCount effect:chars


==Notes==
==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.
* 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.
** The same is probably true for '''MagicItemHasEffectCount'''.
** The same is probably true for [[MagicItemHasEffectCount]].
**This has been fixed as of v0013.


==See Also==
==See Also==
Line 21: Line 22:
[[Category:Magic Functions]]
[[Category:Magic Functions]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions (OBSE)]]
[[Category: Magic Functions - Magic Item (OBSE)]]

Latest revision as of 20:17, 1 March 2008

A command for Oblivion Script Extender

Syntax:

(effectCount:short) MagicItemHasEffectCount effect:chars magicItem:ref

Returns the count of the specified effects on the magic item.

Notes[edit | edit source]

See Also[edit | edit source]