What I'm looking for:
AoE effect applied to the player, and every time an hostile actor enters the effect's AoE field, a script function is called.
I've already looked at how flame cloaks and guardian circles work, but they only cast existing destruction/restoration magic effects to the targets, and don't actually use any scripts. Is there a way to do what I want?