.com.unity Forums

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

Saarud March 25th, 2008 09:55 AM

AI and Spells
 
I am working on a mod where I plan to add and change some of the existing spells. How will AI handle that? How does the AI decide what spell to cast in combat and on province basis and global spells?

Endoperez March 26th, 2008 03:42 AM

Re: AI and Spells
 
On combat, the AI compares how effective various spells would be (how many creatures they would affect, how much damage they would deal, total). There's also some kind of priority modifier that makes some spells more likely to be cast. I don't know if that modifier is calculated automatically for new spells. I have no idea how the AI chooses ritual spells.

If ritual spells also use some kind of priority mechanic that makes AI favour some of them, it wouldn't be that hard to make the AI prefer good summons instead of crappy ones, avoid summoning Harvesters of Sorrows etc. It'd be a lot of work to go through all the spells, of course, so it could be that this wouldn't happen even if we had the capability.


All times are GMT -4. The time now is 07:54 AM.

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