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

This Month's Specials

The Star and the Crescent- Save $8.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old April 13th, 2008, 11:57 PM
DonCorazon's Avatar

DonCorazon DonCorazon is offline
Colonel
 
Join Date: Oct 2007
Location: in a sleepy daze
Posts: 1,678
Thanks: 116
Thanked 57 Times in 33 Posts
DonCorazon is on a distinguished road
Default AI for Mages Using Gems

I am trying to figure out how many gems I need to give a mage who is going to cast 2 low level buffs for which he has the skill and then a big spell that costs 3 gems and will need 1 gem to give him the skill necessary to cast (buffs and big spell are all in the same school).

So if I give the mage 4 gems, will that be enough? My fear is that the AI sees he has the relevant gems in his inventory and uses them to reduce the fatigue cost of the 2 buffs he is casting so when it comes time for the big spell he won't have enough gems.

In that case, I guess I would need 6 gems - 2 that the AI will burn on his buffs (even though that is not what I would want), 1 to boost him so he can cast the big spell, and 3 for the big spell itself.

Thanks
__________________
i crossed blades with the mightiest warriors of the golden age. i witnessed with sorrow the schism that led to the passing of legends. now my sword hangs in its scabbard, with nothing but memories to keep it warm.
Reply With Quote
  #2  
Old April 14th, 2008, 12:17 AM
Saulot's Avatar

Saulot Saulot is offline
Sergeant
 
Join Date: Dec 2003
Location: New York City
Posts: 340
Thanks: 0
Thanked 3 Times in 3 Posts
Saulot is on a distinguished road
Default Re: AI for Mages Using Gems

If the important spell is the first one scripted, you can go with just the base gem requirement. In your example and otherwise, it's generally a good idea to give extra.

IIRC, it's also an important thing to consider that mages won't use more gems than their level for certain purposes.

AI gem use is a tricky subject, and mostly receives complaints when it does something you didn't want, but nobody considers it when it does what you do want.
Reply With Quote
  #3  
Old April 14th, 2008, 12:30 AM
DonCorazon's Avatar

DonCorazon DonCorazon is offline
Colonel
 
Join Date: Oct 2007
Location: in a sleepy daze
Posts: 1,678
Thanks: 116
Thanked 57 Times in 33 Posts
DonCorazon is on a distinguished road
Default Re: AI for Mages Using Gems

I need the buffs to protect me from the big spell so I may not be able to do it given the gem shortage.

Thanks.
__________________
i crossed blades with the mightiest warriors of the golden age. i witnessed with sorrow the schism that led to the passing of legends. now my sword hangs in its scabbard, with nothing but memories to keep it warm.
Reply With Quote
  #4  
Old April 14th, 2008, 07:30 AM
Amhazair's Avatar

Amhazair Amhazair is offline
Lieutenant Colonel
 
Join Date: Nov 2006
Location: Ghent, Belgium
Posts: 1,333
Thanks: 39
Thanked 59 Times in 43 Posts
Amhazair is on a distinguished road
Default Re: AI for Mages Using Gems

Which are the minor buffs you want to cast? If they are in the 20/30 fatigue region my experience is that they won't use extra gems most of the time. If it's going towards 50, they will almost certainly use a gem for it.
__________________
Praeterea censeo, contributoribus magnae auctoritatis e Foro Shrapnelsi frequenter in exsilium eiectis, eos qui verum auxilium petunt melius hoc situ adiuvari posse.
Reply With Quote
  #5  
Old April 14th, 2008, 02:58 PM

Zeldor Zeldor is offline
General
 
Join Date: Oct 2007
Location: Poland
Posts: 3,414
Thanks: 26
Thanked 73 Times in 49 Posts
Zeldor is on a distinguished road
Default Re: AI for Mages Using Gems

The bad thing is that they get gems left they can cast some really ugly spells, like mass protection against abysia So better script them some gem-using spell after the one that you want to cast. So if they have gems cast they waste it on that, not something dangerous. And if not - at least they will pick instead another spell that does not require gems.
__________________
谋事在人,成事在天。

LA Agartha guide
Reply With Quote
  #6  
Old April 14th, 2008, 05:23 PM
Tuidjy's Avatar

Tuidjy Tuidjy is offline
Major
 
Join Date: Apr 2004
Location: La La Land (California, USA)
Posts: 1,244
Thanks: 0
Thanked 30 Times in 11 Posts
Tuidjy is on a distinguished road
Default Re: AI for Mages Using Gems

I have always been amazed how the AI has no concept of harming its own men.
I have had an Arco human mage in a huge human army cast rain of stones against
enemies that were absolutely no match for my guys, killing some mages and about
a hundred of my archers. Yes, he also wiped out the Maverni opposition, but
who cares? They would have been dead anyway.
__________________
No good deed goes unpunished...
Reply With Quote
  #7  
Old April 14th, 2008, 06:15 PM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default Re: AI for Mages Using Gems

Must have gone something like this: Snakebite leader, Bravo Six, for the record, it's my call. Dump everything you got left ON MY POS. I say again, I want all you're holding INSIDE the perimeter. It's a lovely war. Bravo Six Actual and Out.
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
Reply With Quote
  #8  
Old April 14th, 2008, 06:25 PM
sansanjuan's Avatar

sansanjuan sansanjuan is offline
Captain
 
Join Date: Dec 2007
Location: Minnesota, USA
Posts: 887
Thanks: 144
Thanked 40 Times in 36 Posts
sansanjuan is on a distinguished road
Default Re: AI for Mages Using Gems

Quote:
Tuidjy said:
I have always been amazed how the AI has no concept of harming its own men.
I have had an Arco human mage in a huge human army cast rain of stones against
enemies that were absolutely no match for my guys, killing some mages and about
a hundred of my archers. Yes, he also wiped out the Maverni opposition, but
who cares? They would have been dead anyway.
Would be interesting if commanders/mages had an intelligence attribute (with all the potential implications). Low value IQ commanders would be prone to instigate "friendly fire" and general gem abuse. Smart ones would take advantage of knowing likely battle outcomes (each battle might be run internally with multiple passes, first pass with no magic either side, second as scripted, etc....?). These outcomes would be weighed by each side's mages per each IQ attribute with smart mages pulling up a lawn chair and watching if they deem there is no need to risk unleashing death from above on the entire battlefield. Of course there are way too many permutations and randomness for perfection but might be useful for obvious ones like you've cited. Dom4?

-SSJ
__________________
"I think, therefore I am" - René Descartes

"I yam what I yam" - Popeye
Reply With Quote
  #9  
Old April 14th, 2008, 07:49 PM
Tuidjy's Avatar

Tuidjy Tuidjy is offline
Major
 
Join Date: Apr 2004
Location: La La Land (California, USA)
Posts: 1,244
Thanks: 0
Thanked 30 Times in 11 Posts
Tuidjy is on a distinguished road
Default Re: AI for Mages Using Gems

> Dom4?

Dom4 on a Cray supercomputer, maybe... Naah, no way.

There are so many possible actions a mage can take that if you were to have even
one percent of the possible 50 round battles generated, you will not host the
turn on Cray in a day.
__________________
No good deed goes unpunished...
Reply With Quote
  #10  
Old April 14th, 2008, 11:59 PM
sansanjuan's Avatar

sansanjuan sansanjuan is offline
Captain
 
Join Date: Dec 2007
Location: Minnesota, USA
Posts: 887
Thanks: 144
Thanked 40 Times in 36 Posts
sansanjuan is on a distinguished road
Default Re: AI for Mages Using Gems

Quote:
Tuidjy said:
> Dom4?

Dom4 on a Cray supercomputer, maybe... Naah, no way.

There are so many possible actions a mage can take that if you were to have even
one percent of the possible 50 round battles generated, you will not host the
turn on Cray in a day.
So we all chip in....

I was wondering what % of a turn's cycles are spent on animation creation. If that was surpressed... For your specific scenario I wonder if even a single iteration might be useful. Just a thought.

-SSJ
__________________
"I think, therefore I am" - René Descartes

"I yam what I yam" - Popeye
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 06:08 PM.


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