AidenPryde Posted August 28, 2013 Share Posted August 28, 2013 Hello everyone. I'm currently in the process of making some unique NPCs with their own classes and abilities. First on my list is the Paladin. Befitting a Paladin I've got the NPC to cast a Divine Aura spell that is supposed to only damage undead. I based the spell off of the vanilla Flamecloak spell. It currently works... mostly. Except it damages all enemies and the Paladin NPC casts it no matter what type of enemy she is fighting. I've tried adding a get is race argument to the spell to be cast and/or to the damage spell that procs when enemies enter melee range. Adding it to the cloak itself breaks the spell and the NPC no longer casts it. As a PC I can no longer cast it either (presumably because the caster isn't undead). Adding it to the proc spell allows the NPC and player to cast the spell but no type of NPC is damaged by the spell. The basic problem is that I want the NPC to detect whether they are facing Undead and if they are ... to cast the appropriate spell. I imagine that there is a scriping solution that needs to happen, but I am unsure where to begin. Thank you for your help. -Aiden Link to comment Share on other sites More sharing options...
blacksupernova Posted August 29, 2013 Share Posted August 29, 2013 Your spell is exactly identical to the Stendarr's Aura spell added by Dawnguard, but I presume you don't have the DLC? If so, the condition you need to add would be applied to the proc spell: IsUndead == 1 or HasKeyword ActorTypeUndead == 1 Link to comment Share on other sites More sharing options...
AidenPryde Posted August 29, 2013 Author Share Posted August 29, 2013 Your spell is exactly identical to the Stendarr's Aura spell added by Dawnguard, but I presume you don't have the DLC? If so, the condition you need to add would be applied to the proc spell: IsUndead == 1 or HasKeyword ActorTypeUndead == 1 I actually have Dawnguard, but didn't know about the Stendarr's Aura spell. I actually wanted to make this mod so that it only needs Skyrim.esm to run, so that when I publish it people without the DLC can use it. I'll try your suggestion and see if it only effects undead, and if Lydia is smart enough to only cast it when facing undead. Thanks. Link to comment Share on other sites More sharing options...
AidenPryde Posted August 30, 2013 Author Share Posted August 30, 2013 Your spell is exactly identical to the Stendarr's Aura spell added by Dawnguard, but I presume you don't have the DLC? If so, the condition you need to add would be applied to the proc spell: IsUndead == 1 or HasKeyword ActorTypeUndead == 1 Well I got it to work. And it only effects undead. However the NPC casts it no matter which type of enemy she is facing. Link to comment Share on other sites More sharing options...
Ruhadre Posted December 20, 2014 Share Posted December 20, 2014 (edited) I've recently been toying with this idea as well. I added the bats ability to an npc vampire follower I downloaded, and just had to remove the "is vampire lord" part to make it work. By applying the cloak as an ability instead of a spell, you don't have to worry about the npc casting it or not. As long as you have the "is in combat" part, then the cloak will automatically activate when combat starts. So, I started thinking to myself, wouldn't it be neat if I could apply this to a non-vampire npc, and use stendarr's aura instead. I also only wanted it to activate when fighting undead. Problem: creation kit only has stendarr's aura in it as a spell. Bats was easy because it's an existing vampire lord ability in dawnguard. Bottomline, the ck won't let me create a constant effect stendarr's aura. So I'm thinking I'll have to create some kind of custom ability to be able to use it. I haven't gotten that far yet at the time of writing this. However, I was wondering how I would specifically add the line so any kind of undead would trigger the cloak? Wouldn't "Is Undead" prevent a "living" npc from casting it? Same thing with using actor type. After reading everything above, Aiden seemed to be just trying to make sure only undead were damaged by his custom flame cloak. I'm looking for a condition that I can use with "is in combat" so basically only hostile undead trigger the cloak. Any ideas? EDIT - I forgot to add, I'm only able to apply these cloaks to npc's with custom races, as I apply this through their race. But is it also possible to apply it from a npc's spell-list? Edited December 20, 2014 by Ruhadre Link to comment Share on other sites More sharing options...
Recommended Posts