HasMagicEffectKeyword

Revision as of 03:59, 2 June 2017 by imported>DavidJCobb (→‎Description: minor correction)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DescriptionEdit

If the calling reference is being affected by a Spell that can potentially apply a Magic Effect with the specified Keyword, then the condition function returns 1. This means that a magic effect will cause this function to return 1 if the effect-side conditions are met, even if the spell-side conditions aren't met and the effect isn't actually active.

In other words, "having a magic effect" is distinct from "being affected by a magic effect," and this function tests for the former.

SyntaxEdit

ActorRef.HasMagicEffectKeyword KeywordString 

ExampleEdit

Player.HasMagicEffectKeyword "MagicBlessing"

Papyrus VersionEdit

Actor.HasMagicEffectWithKeyword

See AlsoEdit

HasMagicEffect
IsSpellTarget
OnMagicEffectHit