.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #1  
Old March 5th, 2004, 07:30 PM
tinkthank's Avatar

tinkthank tinkthank is offline
Lieutenant Colonel
 
Join Date: Jan 2004
Posts: 1,276
Thanks: 0
Thanked 2 Times in 2 Posts
tinkthank is on a distinguished road
Default Reasons why the computer will not cast the spells you script

I have often noticed that some of my favorite scripts (power of the spheres, phoenix power, flame arrows, wind guide) do not get cast but rather astral shield followed by something I dont want DESPITE the fact that the commander definately has enough gems on him. So what reasons could there be in those cases?

Since my searches on this topic turned up either inconsistancies, I thought I would start a thread here and hope people would add.

To my knowledge, the tactical AI spellcasting will not cast your scripted spells if they are
- impossible to cast (e.g. underwated/land conflict)
- you dont have enough gems
- if you scripted Quickness, your following spells might get replaced by some random spell you get from extra "quickness" spell (I think??)
- there is no appropriate target (in range)?? (is this right)?
- when else?
Reply With Quote
  #2  
Old March 5th, 2004, 07:49 PM
Taqwus's Avatar

Taqwus Taqwus is offline
Major General
 
Join Date: Aug 2000
Location: Mountain View, CA
Posts: 2,162
Thanks: 2
Thanked 4 Times in 4 Posts
Taqwus is on a distinguished road
Default Re: Reasons why the computer will not cast the spells you script

It may also ignore your gem-burning spells if it believes that the opposition doesn't merit it. It's unlikely to cast Master Enslave on a single Call of the Winds strike, say.
__________________
Are we insane yet? Are we insane yet? Aiiieeeeee...
Reply With Quote
  #3  
Old March 5th, 2004, 08:01 PM

Sand Sand is offline
Private
 
Join Date: Feb 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Sand is on a distinguished road
Default Re: Reasons why the computer will not cast the spells you script

Hmph. I'd prefer a "I Mean It!" option or something that casts the spells regardless of opposition. I'd rather burn a few gems than lose a spellcaster because he thought the opposition was weak.
Reply With Quote
  #4  
Old March 5th, 2004, 08:04 PM
Demosthenes's Avatar

Demosthenes Demosthenes is offline
Corporal
 
Join Date: Feb 2004
Location: San Diego, CA
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Demosthenes is on a distinguished road
Default Re: Reasons why the computer will not cast the spells you script

The AI doesn't seem to want to cast redundant spells in SOME cases. I can't get it to cast Aim after Wind Guide is active. But that doesn't seem to apply to the whole casting *foo* resistance even though the target already has greater *foo* resistance than the spell can provide.



[ March 05, 2004, 18:15: Message edited by: Demosthenes ]
Reply With Quote
  #5  
Old March 5th, 2004, 08:35 PM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Reasons why the computer will not cast the spells you script

No target in range is definite a reason. Another seems to be "Hey look, bloodslaves! Fun!".

PvK
Reply With Quote
  #6  
Old March 5th, 2004, 08:36 PM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Reasons why the computer will not cast the spells you script

Oh, another is - "I used the gems that spell needs, to save myself fatigue when casting an earlier spell."

PvK
Reply With Quote
  #7  
Old March 6th, 2004, 11:13 AM
tinkthank's Avatar

tinkthank tinkthank is offline
Lieutenant Colonel
 
Join Date: Jan 2004
Posts: 1,276
Thanks: 0
Thanked 2 Times in 2 Posts
tinkthank is on a distinguished road
Default Re: Reasons why the computer will not cast the spells you script

Yes.

I wonder how the "doesnt merit it" is calculated. In the example in my original strat, I was storming a castle in which the enemy's pretender was sitting, a Titan surrounded by a few ( but only a few) beefy units. It seems the computer calculates numbers, not power. I had tons of gems, I really wanted to make sure nothing got screwed up -- and I *think* that because flaming arrow, antimagic, wind guide, arrow fend (I think it was a hill fortress and there wwere tons of javs coming at me) were not cast as I had scripted I got hurt badly (many troops but also prophet and 1 other nice general died) when I should have taken only minimal cannon fodder losses. Kind of dissapointed in that, it really makes me think: ah, great planning here by me muhahah -- argh but what for!?
Reply With Quote
  #8  
Old March 6th, 2004, 01:06 PM
Argitoth's Avatar

Argitoth Argitoth is offline
Lieutenant Colonel
 
Join Date: Oct 2003
Location: Gilbert, AZ
Posts: 1,375
Thanks: 1
Thanked 0 Times in 0 Posts
Argitoth is on a distinguished road
Default Re: Reasons why the computer will not cast the spells you script

untits with quickness just go through thier script twice as fast, they don't randomly pick a spell for the extra action.
__________________
Composer, Sound Designer, www.elanhickler.com
Reply With Quote
  #9  
Old March 6th, 2004, 03:54 PM
Arryn's Avatar

Arryn Arryn is offline
Major General
 
Join Date: Jan 2004
Location: twilight zone
Posts: 2,247
Thanks: 0
Thanked 0 Times in 0 Posts
Arryn is on a distinguished road
Default Re: Reasons why the computer will not cast the spells you script

Quote:
Originally posted by Argitoth:
untits with quickness just go through thier script twice as fast, they don't randomly pick a spell for the extra action.
Actually, they sometimes do. I have seen a mage do: Pick 1, Random, Pick 2, Pick 3, Pick 4, Random, Pick 5. I've also seen other combos.
__________________
Visit my Dominions II site
Reply With Quote
  #10  
Old March 6th, 2004, 06:04 PM

mivayan mivayan is offline
Second Lieutenant
 
Join Date: Dec 2003
Posts: 404
Thanks: 0
Thanked 1 Time in 1 Post
mivayan is on a distinguished road
Default Re: Reasons why the computer will not cast the spells you script

Maybe the gem-saving ai should be disabled when storming a castle, since castles are sometimes defended by a small number of very strong mages and your huge army cant get at them because of the walls. The gem-saving ai is great to avoid wasting gems on small battles, but the storming of a castle is often carefully planned.

Any bad things about the idea?
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:43 PM.


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