HasMagicEffect for concentration spells?

Post » Sun Nov 18, 2012 8:26 pm

I am having a bit of trouble getting this to work, and now I'm wondering if it doesn't work with concentration spells?

I have a separate magic effect that get's applied on the first tick of a concentration spell, and that 2nd spell does a check on update and does stuff if the original concentration spell's effect is currently on that same target at the time. I have a debug message in the 2nd constant effect spell to display if the HasMagicEffect check comes back. Problem is, it never does.

I tried setting the original concentration spell to Script, and to Value Modifier, which seems to make no difference. No matter what I've tried, it seems like concentration spells don't register their effects for HasMagicEffect. Am I missing something?

I can't use the IsSpellTarget conditional because the 2nd spell isn't an all or nothing proposition. It will have a variable duration depending on whether the original spell is detected during it's duration or not. I just haven't found a reliable way for the added spell to check for the original spell's effect.

I can confirm however through debug that the 2nd spell has indeed been added.
User avatar
Melanie Steinberg
 
Posts: 3365
Joined: Fri Apr 20, 2007 11:25 pm

Return to V - Skyrim