» Tue Jun 19, 2012 7:58 am
As far as I'm aware, effects are only actually run on http://www.creationkit.com/Actor_Script, although for some objects (I believe only the ones under "World Objects" or whatever it's called in the Creation Kit - not inventory items) you can detect the event with http://www.creationkit.com/OnMagicEffectApply_-_ObjectReference, but that needs to be done from the "other end" - i.e. the reference being hit.
However, if you want to run a magic effect on something that's not an Actor, I don't think there's any other method. If anyone knows of one, I would absolutely love to hear it, as the method I've needed to do for my (currently not clean enough to release) cook meat with fire spells mod is very complicated in order to get around this.
In order to do something when meat is hit by a spell, I've had to use a quest script to swap all meat for almost identical http://www.creationkit.com/Activator_Script (that add the default http://www.creationkit.com/Potion_Script object to the player's inventory when activated) that have a script which detects the spell.
Still a couple of issues with http://www.creationkit.com/PlaceAtMe_-_ObjectReference, and uninstalling will destroy all meat that the player has ever seen, but aside from that it works at least.
Cipscis