Custom Enemy Won't use Custom Spell

Post » Wed May 11, 2016 8:39 pm

Hi everyone I have this issue. My custom Mage Enemy won't use a custom spell. Here is the spell and the enemy data.



imgur dot com/a/taZiK



As the name suggests, the spell is an explosion that sends enemies flying like unrelenting force, the target is "self" its not aimed. It works perfectly if the player uses it but this spell is not for the player is for my Custom Enemy. I want the enemy to cast this thing. But the stupid enemy wont use it when I activate the enemy he fights using his hands. I've tried everything, changing the enemy combat style, class, actor base, AI data, I added those conditions you see in the screenshots and nothing. If I give my enemy any vanilla "self" spell or destruction spells he uses them. I tried adding the spell to a vanilla actor and he wont use it D= ... so the problem is the spell. what could it be?



Update: I've noticed that enemies wont use spells such like Blizzard. Maybe it's hard coded in the game =/



I hope you can help me. Thanks

User avatar
Nick Tyler
 
Posts: 3437
Joined: Thu Aug 30, 2007 8:57 am

Post » Wed May 11, 2016 3:27 pm

The following is assuming you did not make a spell that cannot be used such as a condition like Is actor in combat == 0.



AI has a set of rules for which spells are used when. First try removing all other spells from the actor except the one spell you want to test.



If that works you may need to fool around with the spells attributes like the skill level and cost or damage to get the AI to pick your spell over others.

User avatar
Schel[Anne]FTL
 
Posts: 3384
Joined: Thu Nov 16, 2006 6:53 pm

Post » Wed May 11, 2016 10:17 pm

If the spell is hostile and targets the self, the AI probably won't cast it.

The AI also won't use spells that require two-handed casting methods.
User avatar
Robert Jr
 
Posts: 3447
Joined: Fri Nov 23, 2007 7:49 pm


Return to V - Skyrim