Difference between revisions of "MagicItemHasEffect"

194 bytes added ,  20:26, 26 March 2011
Added optional actor value argument.
imported>DragoonWraith
m (Reverted edits by DragoonWraith (Talk); changed back to last version by Haama)
imported>Low Post
(Added optional actor value argument.)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


'''Syntax:'''
'''Syntax:'''
  (hasEffect:bool) MagicItemHasEffect effect:chars magicItem:ref
  (hasEffect:bool) MagicItemHasEffect effect:chars magicItem:ref ''actorValue:name''


  (hasEffect:bool) MagicHasEffect effect:chars magicItem:ref
  (hasEffect:bool) MagicHasEffect effect:chars magicItem:ref ''actorValue:name''


Returns whether the magic item has an effect item with the specifed effect.
Returns whether the magic item has an effect item with the specifed effect.
Line 13: Line 13:
** 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.
**This has been fixed as of v0013.
**This has been fixed as of v0013.
*Uses an '''optional''' actor value name for use with effects like fortify skill and fortify attribute.


==See Also==
==See Also==
Line 24: Line 25:
[[Category:Magic Functions]]
[[Category:Magic Functions]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions (OBSE)]]
[[Category: Magic Functions - Magic Item (OBSE)]]
Anonymous user