Difference between revisions of "HasMagicEffectKeyword"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Catwheezle
(Found the Papyrus version.)
imported>Egocarib
(reword/clarify & exchange "Frost" for an actual Keyword that exists)
Line 1: Line 1:
==Description==
==Description==
Returns 1 if the calling reference is currently being affected by a [[MagicEffect_Script]] that matches the given keyword.
Returns 1 if the calling reference is currently being affected by a [[MagicEffect_Script|Magic Effect]] with the given keyword.


==Syntax==
==Syntax==
Line 6: Line 6:


==Example==
==Example==
  Player.HasMagicEffectKeyword "Frost"
  Player.HasMagicEffectKeyword "MagicBlessing"


==Papyrus Version==
==Papyrus Version==
[[HasMagicEffectWithKeyword_-_Actor|HasMagicEffectWithKeyword]]
[[HasMagicEffectWithKeyword_-_Actor|Actor.HasMagicEffectWithKeyword]]


==See Also==  
==See Also==  

Revision as of 21:10, 23 April 2014

Description

Returns 1 if the calling reference is currently being affected by a Magic Effect with the given keyword.

Syntax

ActorRef.HasMagicEffectKeyword KeywordString 

Example

Player.HasMagicEffectKeyword "MagicBlessing"

Papyrus Version

Actor.HasMagicEffectWithKeyword

See Also

HasMagicEffect
IsSpellTarget
OnMagicEffectHit