How to tell if a spell is active?

Post » Tue Jun 19, 2012 6:32 am

Is there a way to tell (in a conditional) whether or not a spell is currently active? For instance, is there some way of seeing if a particular keyword is in effect on the player? I have looked through the functions available and here are the functions that seem like they might possibly work:

GetKeywordItemCount - although spells aren't actually an item per se?
GetScriptVariable - this would require attaching a script to the magic effect that would toggle a variable
GetSpellUsageNum
HasKeyword
HasMagicEffectKeyword

If anyone has any ideas about how these functions work, and could save me some time testing... I'd be grateful! :D
User avatar
Cartoon
 
Posts: 3350
Joined: Mon Jun 25, 2007 4:31 pm

Return to V - Skyrim