[Papyrus] Checking to see if an Actor is already under a Mag

Post » Sun Jun 24, 2012 5:09 am

Another problem: http://www.creationkit.com/Dispel says I should be able to do "NPCRef.Dispel Flames", but my code:

ActorCaster.Dispel spellToCast

Edit: Ah, I see. I was confusing the Effect Archetype Dispel with the ActiveMagicEffects Function Dispel. Man there's a lot of confusing cross-referencing going on here!
User avatar
jessica Villacis
 
Posts: 3385
Joined: Tue Jan 23, 2007 2:03 pm

Post » Sat Jun 23, 2012 10:23 pm

HasMagicEffectWithKeyword <- Look this up in the Wiki. It's the closest to what you're looking for. Still would need to run a loop over all possible Magic Effect Keywords to check if ANY Magic affact is active on that actor.
User avatar
Albert Wesker
 
Posts: 3499
Joined: Fri May 11, 2007 11:17 pm

Post » Sat Jun 23, 2012 11:55 pm

OP edited to show current problem.
User avatar
Lance Vannortwick
 
Posts: 3479
Joined: Thu Sep 27, 2007 5:30 pm


Return to V - Skyrim