Hello everyone,
I'm in the process of modifying a number of the vanilla companions to be more unique.
First on the list is Lydia, which I want to make more of a Paladin like character. I have a spell that I have created called Divine Aura. This spell is a form of cloak spell that burns undead in melee range.
I have tested the spell and I have successfully made it so the spell only effects undead.
The problem is that Lydia casts the spell no matter which enemy type she is facing.
I would like to make it so that Lydia will only cast Divine Aura if her target is undead.
It has been suggested that I use two combat shouts. One to detect if there are undead nearby, and if so, add the spell to her spell list, and the other shout to remove it if no undead are nearby.
This seems like a heavy handed way of doing it and I am wondering if there is a way of adding a script to the spell that does this detection for Lydia.
Any help you all could give me would be very appreciated.
Thanks,
-Aiden