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

This Month's Specials

Raging Tiger- Save $9.00
World Supremacy- Save $9.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old February 25th, 2004, 09:07 AM

Pocus Pocus is offline
Lieutenant Colonel
 
Join Date: Apr 2003
Location: Nuts-Land, counting them.
Posts: 1,329
Thanks: 1
Thanked 0 Times in 0 Posts
Pocus is on a distinguished road
Default AI wasting gems

I got a very hard to justify AI decision yesterday. I teleported my Baphomet (fire 9 astral 4) with 4 fire gems and with the following script : lesser fire elts x4

I expected that, being so powerful in fire, he would only consume one gem (the basic cost) for each casting.

No avail... The first cast used 3 gems, with the Baphomet rising to 11 fatigues (10 from the spell, 1 from enc). The second (and Last cast) gave 13 fatigues (12+1).

Now I wonder why there is no basic algorithms which prevent the wasting of 2 additional gems just to get 2 less fatigues... Here is a quick example:

1. pay basic cost.
2. check which fatigue reduction you would get by spending one more gem:
a) if caster fatigue is <90, dont spend if the fatigue reduction is 5 or less.
b) if caster fatigue is <190, dont spend if the fatigue reduction is 3 or less.
c)if caster fatigue is >=190, dont spend if the fatigue reduction is 1 or less.

if increased gem cost in decided, repeat 2. Limit extra gem usage with the caster level, as usual.

Not that difficult...


Second problem:
I scripted blink as my 5th spell, in 3 differents combat. The spell never triggered. I though that spells without gem usage were never overriden, if the conditions were met for the cast (and blink have no conditions like range... that can prevent its casting).
So, a bug, or a normal behavior? Dont tell me that the infamous 'AI override zeal' is back in full force.
__________________
Currently playing: Dominions III, Civilization IV, Ageod American Civil War.
Reply With Quote
  #2  
Old February 25th, 2004, 10:03 AM
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: AI wasting gems

I think you have a good suggestion for the AI there.

Instead of Blink, what did it cast?

PvK
Reply With Quote
  #3  
Old February 25th, 2004, 10:56 AM

Pocus Pocus is offline
Lieutenant Colonel
 
Join Date: Apr 2003
Location: Nuts-Land, counting them.
Posts: 1,329
Thanks: 1
Thanked 0 Times in 0 Posts
Pocus is on a distinguished road
Default Re: AI wasting gems

a non-gems spell, like firedart or holy pyre IIRC. Blink should never be overriden, as the AI as no means to access properly why the player wanted this spell. Btw blink, as magic duel and others, are spells which are never cast by the AI, if not scripted, so its better that the AI dont try to dabble with the scripting of such spells, or in this case, the de-scripting...
__________________
Currently playing: Dominions III, Civilization IV, Ageod American Civil War.
Reply With Quote
  #4  
Old February 25th, 2004, 04:33 PM
Kristoffer O's Avatar

Kristoffer O Kristoffer O is offline
General
 
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
Kristoffer O is on a distinguished road
Default Re: AI wasting gems

To my knowledge the AI only uses one extra gem to increase power. Are you sure it used 2 extra?
__________________
www.illwinter.com
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 02:26 AM.


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