.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Modded spells and AI (http://forum.shrapnelgames.com/showthread.php?t=38875)

Twan May 21st, 2008 06:41 PM

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

Endoperez May 26th, 2008 04:35 AM

Re: Modded spells and AI
 
I wasn't testing this, but I realized that this is the list of all spells available for independent casters. A lowly Priest went though these spells when he tried to decide what to cast.

Holy

Banishment
Blessing
Sermon of Courage
Smite Demon
Holy Avenger
Divine Blessing
Smite
Fanaticism
Word of Power


Fire

Fire Flies
Combustion
Flame Bolt
Flare

Water

Freezing Touch
Slime
Cold Bolt
Numbness
Water Strike

Astral

Twist Fate
Star Fires
Mind Burn

Air

Air Shield
False Fetters
Lightning Bolt

Earth

Earth Might
Earth Grip
Fists of Iron

Nature

Sleep Touch
Vine Arrow
Sleep Cloud

Death
Hand of Dust
Animate Skeleton
Raise Dead
Raise Skeletons

Blood

Bleed
Summon Imp


All times are GMT -4. The time now is 04:38 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.