Hi All,
I was playing my mod and didn't like the way my clerics were fighting especially at a low level i.e. 4th level. They did not cast any of the harmful memorized spells, especially the inflicting wounds. So I decided to take a look first at the nw_i0_generic.nss to see about the combat scripting. What I found was interesting that ta function called TalentSpellAttack() determines what spell to attack with. Problem is a lot of it is not fully documented and I believe the problem with low level clerics or spell casters is it uses something called GETCRMAX(). This function I believe has a big impact on the AI behavior on spell casting.
Questions:
1. Anyone know exactly how GETCRMAX() works?
2. I'm I right about the function probably being the cause of bad AI spell selection and is there a work around?
I made a 10 level Battle Cleric and yes he used his spells and fought much better.
FYI
I'm aware that there's a variable call nMagic must be above 50 to cast spells. I hard coded in a value bigger than 50 and observed the result by a speakstring() command. Even though the nMagic was greater than 50 i.e. 100, the low level cleric refused to cast a offensive spell and only did a physical attack.
Any insight would be welcome.
Regards,