Here's the scoop. I have an enchantment-based magic effect. I would like to prevent the player from using the effect until a perk is gained, via conditions either on the magic effect itself or on the enchantment effect item. The key is, I want to make sure any NPC can still use this effect.
Trouble is, I can't find a way to run a condition on the actor attacking with the enchanted weapon.
Running the condition on "subject," "target," or "combat target" all result in the condition being run on the person who is being attacked by the weapon. (Weird, since the "subject" that "owns" the effect, and that subject's "combat target" would have been opposite, you'd think?). If I run the condition (like HasPerk) on the player reference directly, it will get run on the player even when an NPC is using the weapon, and prevent the NPC from using it. There has to be some way to reference the actor using the weapon, no?
I am also open to scripting options, but I have already tried a scripted dispel() of enchantment effects and it isn't good enough, since some effects are too immediate to be prevented by dispel() (like Paralysis).