Follower won't cast Restoration spells

Post » Wed Jun 20, 2012 9:13 am

My follower has two restoration spells in her spell list (Fast Healing left hand version, Close Wounds left hand version)

getav restoration -> returns 68 (more than enough)
getav magicka -> returns 330 (more than enough)

Combat style -> set to "Human Magic"
Class -> set to "CombatMageElemental"

Still when the follower is hurt in combat she never casts the spells (whereas enemy casters do). What else do I need to check to make her use healing spells on herself when hurt?
User avatar
Matt Fletcher
 
Posts: 3355
Joined: Mon Sep 24, 2007 3:48 am

Post » Wed Jun 20, 2012 6:09 pm

I haven't been able to get my follower to cast healing spells either. One thing i thought of, but haven't tested, is to copy the combat style 'CombatMageElemental' and name it like 'MyCombatMageElemental' and then increase the 'Defensive Mult', this should make the character more defensive, which *might* make them more likely to cast healing spells.

I was able to use a script to force the follower to cast restoration spells
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \  bool abBashAttack, bool abHitBlocked)  int thisFollowersHealth = self.GetAV("Health") as int  if (health < 100)    EquipSpell(HealingSpell,0)    DoCombatSpellApply(HealingSpell,self)  endIfEndEvent

That way, if your follower get's hit and their health is below 100 they will automatically cast the healing spell. You can tweak the numbers to change when they decide to cast healing spells. And of course use a property to specify what healing spell they should cast
User avatar
TIhIsmc L Griot
 
Posts: 3405
Joined: Fri Aug 03, 2007 6:59 pm

Post » Wed Jun 20, 2012 8:38 am

You may also be able to accomplish this through Combat Override AI packages.
User avatar
Theodore Walling
 
Posts: 3420
Joined: Sat Jun 02, 2007 12:48 pm


Return to V - Skyrim