Modded spells and AI
My impression is : modded buffs get an huge priority, and the AI doesn't recognize them as non cumulative.
(ie : I've made a spell using legion of steel + barkskin + resist fire + cold aura effects* all being non cumulative, and the AI often chain cast it several times on the same mage for no additionnal result ; or use the component spells in addition)
Personnal spell made mass buff spells may also be affected (or it's perhaps just a result of one or two units to affect ; also a problem with non modded spells). AI casted several time the "Mass Glamour" spell I've made to replace MoD** in my test, just to give mirror images to one or two units who lost them.
Perhaps (I hope) there is something (still undocumented / not discovered) to add in the #spec field to make the AI recognize a spell as a "one time only" effect or reduce the priority it gets ?
If not I have a suggestion : make any modded spell using effect 10 or 23 (buff) "cast only if scripted" by default.
It's sad to see some of the rich possibilities in magic modding unexploitable because they make the AI dumber (now as buff effects weren't documented in modding.pdf, new buff spells aren't supposed to work well, but it would be cool if possible).
*
#newspell
#name "Armor of Ice"
#effect 10
#damage 9296
#descr "This spell creates a temporary armor of ice, giving the caster increased protection and a cold aura. The armor of ice will adapt its shape to complete any existing armor and is especially efficient if the mage already wear one. This armor also offers a slightly increased resistance against fire."
#researchlevel 0
#school 3
#path 0 2
#pathlevel 0 3
#fatiguecost 40
#aoe 0
#range 0
#precision 100
#nreff 1
#flyspr 10012
#end
**
#selectspell "Mists of Deception"
#copyspell "Mirror Image"
#pathlevel 0 6
#researchlevel 8
#fatiguecost 400
#name "Mist of Mass Glamour"
#aoe 666
#spec 4194304
#descr "Gives mirror images to all your warriors on the battlefield."
#end
|