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

This Month's Specials

Raging Tiger- Save $9.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
  #11  
Old March 1st, 2011, 06:12 AM

Finalgenesis Finalgenesis is offline
First Lieutenant
 
Join Date: Jun 2010
Posts: 732
Thanks: 65
Thanked 17 Times in 15 Posts
Finalgenesis is on a distinguished road
Default Re: Question about gems in combat...

There are also cases where a mage who has the gems and capability to cast the given scripted spell but won't.

One example is if the enemy is too "weak" as popular wisdom has it and seem to fit most of the time, but I have yet to figure when exactly AI consider "weak". For example, I've teleported a lone mage into a horde of 200+ troops army and triggered their gem spells, and I've also seen a casting of ghost rider (33 troops + leader) not trigger enemy gem spells. Once you get a feel for it (through many trial and error) you'll get a somewhat accurate feel of when gem spells will be triggered or not.

Also unique cases with spells like reinvigoration, I have never seen my mages cast this spell when scripted under the few circumstances I tried. I HAVE seen opponent cast it once before, I wonder what the trick is to get a mage to cast this spell... Just be careful if you plan to rely on this spell in communions of clutch casters. My gem-trigger sense seem to be fail completely when it comes to trying to cast this spell.

Basically, knowing how to manipulate the AI to do what you want and compensate for the AI's shortcoming is critical. Otherwise seemingly effective scripts will go out of control.
Reply With Quote
  #12  
Old March 1st, 2011, 02:40 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: Question about gems in combat...

Quote:
Originally Posted by Finalgenesis View Post
There are also cases where a mage who has the gems and capability to cast the given scripted spell but won't.

One example is if the enemy is too "weak" as popular wisdom has it and seem to fit most of the time, but I have yet to figure when exactly AI consider "weak". For example, I've teleported a lone mage into a horde of 200+ troops army and triggered their gem spells, and I've also seen a casting of ghost rider (33 troops + leader) not trigger enemy gem spells. Once you get a feel for it (through many trial and error) you'll get a somewhat accurate feel of when gem spells will be triggered or not.

Also unique cases with spells like reinvigoration, I have never seen my mages cast this spell when scripted under the few circumstances I tried. I HAVE seen opponent cast it once before, I wonder what the trick is to get a mage to cast this spell... Just be careful if you plan to rely on this spell in communions of clutch casters. My gem-trigger sense seem to be fail completely when it comes to trying to cast this spell.

Basically, knowing how to manipulate the AI to do what you want and compensate for the AI's shortcoming is critical. Otherwise seemingly effective scripts will go out of control.
So true. I can vouch that your "spell feel" is way better than mine.

To premptively answer the usual followup question of "why didn't my !#&$&(! slave rich Demon cast his infernal prison spell on the uberSC??... is that he was a couple steps too far away..."

In other words... alway factor in range (best you can) when scripting. The pros are really good at it.
ssj
__________________
"I think, therefore I am" - René Descartes

"I yam what I yam" - Popeye
Reply With Quote
  #13  
Old March 1st, 2011, 10:44 PM

Shadrach Shadrach is offline
Private
 
Join Date: Oct 2009
Posts: 21
Thanks: 11
Thanked 2 Times in 2 Posts
Shadrach is on a distinguished road
Default Re: Question about gems in combat...

In my experience, mages won't cast reinvigoration unless they have fatigue. If you want to reinvigorate communion slaves with a master, the master will need to cast something to give himself fatigue before every cast of reinvigoration. In practice this means you can only script reinvigorate twice per master and have it work. In theory you could do it every round with one master wearing a flame helmet, but I've never tried that.

My testing also seems to show that communion masters won't use gems to raise their skill level for skills that are boosted by the communion. They can use the number of gems that you would expect, but for some reason they can't use any of them to boost their skill up another level.
Reply With Quote
  #14  
Old March 2nd, 2011, 12:17 AM

Finalgenesis Finalgenesis is offline
First Lieutenant
 
Join Date: Jun 2010
Posts: 732
Thanks: 65
Thanked 17 Times in 15 Posts
Finalgenesis is on a distinguished road
Default Re: Question about gems in combat...

One of my attempts to cast reinvigorate in communion involves half a dozen mages casting sabbath (no matrixes are involved), on casting sabbath my slaves and master racked up a bit of fatigue, followed by a round of spells then reinvigorate from the master in turn 3, by then the fatigues were above 50 for the master who should be casting reinvig next. The reinvigorate didn't go off, instead I get imps (It's always the damn imps!), enemy had a forces of 50+ units. Suffice to say the round 5 reinvigorate didn't go off either, let's just say the battle did not go my way.

I'll admit I only tried two more times afterward half heartedly, then gave up on the spell in disgust.

I believe you are right on the fatigue, but it must be something else preventing my mages casting in this case.

Good tip on the communion master not being able to use gem boost.
Reply With Quote
  #15  
Old March 2nd, 2011, 03:41 AM

Kobal2 Kobal2 is offline
Sergeant
 
Join Date: Apr 2004
Posts: 285
Thanks: 3
Thanked 19 Times in 13 Posts
Kobal2 is on a distinguished road
Default Re: Question about gems in combat...

Quote:
Originally Posted by Knai View Post
Remember this. If you don't make sure the mage has the gems needed, it will inevitably manage to pick the single worst spell possible as a replacement.
Now don't say that ! Sometimes the AI picks a real battle-turner. Like Touch of Madness, cast on your mage stack. That changes the course of the whole battle alright .
__________________
Anything wrong ?
Blame it on me - I'm the French.
Reply With Quote
  #16  
Old March 3rd, 2011, 09:45 PM

thejeff thejeff is offline
General
 
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
thejeff is on a distinguished road
Default Re: Question about gems in combat...

So, in a slightly different twist on the topic of gems in combat:
How many gems can a mage use above the cost of the spell? I'd thought it was only one, but I just had a Communioned up Dakini use 3 gems to cast Arrow Fend. It should have been A6 with the Communion, so only about 12 fatigue before gems and without the communion.
Do Communions screw up the algorithm?

My usual practice, if I wanted a mage to cast multiple gem-using spells, has been to give him one extra for each spell but the last. It's usually worked. Do I have to fall back to giving him Path gems for each spell to be sure?
Reply With Quote
  #17  
Old March 4th, 2011, 02:25 AM

Bananadine Bananadine is offline
First Lieutenant
 
Join Date: Nov 2007
Posts: 749
Thanks: 25
Thanked 28 Times in 18 Posts
Bananadine is on a distinguished road
Default Re: Question about gems in combat...

I don't know how many gems you must apply to guarantee that your script will work. I wonder that myself... it seems that I can usually guess right. But mages can certainly use loads of extra gems, as long as they don't use more than one per magic skill level per casting. This thread hits that question about halfway through: http://forum.shrapnelgames.com/showthread.php?t=45210

Particularly, I often wonder whether the AI makes any effort to save gems that'll be needed by a later part of the script. I suspect it doesn't... maybe somebody who looks at debugging logs can give some evidence?

(I can't address the communion part of the question.)
Reply With Quote
  #18  
Old March 4th, 2011, 02:56 AM

Finalgenesis Finalgenesis is offline
First Lieutenant
 
Join Date: Jun 2010
Posts: 732
Thanks: 65
Thanked 17 Times in 15 Posts
Finalgenesis is on a distinguished road
Default Re: Question about gems in combat...

Mage will not try to save gems for multi gem spells.

I go by the rule that AI will always burn as many gems to cast a gem spell at below 40 fatigue, and this seems to work for me most of the time. So do your calculation using this rule of thumb (taking into account magic dom, encumbrance), then add +1 extra just in case and you should almost always be able to get more then 1 gem spells out. Of course it they can't burn any more gems then their path.

I think there might be an AI rule that if they are about to go above 100 fatigue from a spell, they will burn as many gems as possible to stay below 100, even if the spell does not need gems.
Reply With Quote
  #19  
Old March 4th, 2011, 06:25 AM

Dimaz Dimaz is offline
First Lieutenant
 
Join Date: May 2005
Posts: 660
Thanks: 63
Thanked 75 Times in 31 Posts
Dimaz is on a distinguished road
Default Re: Question about gems in combat...

I always give Path gems (accounting for combat boosts) for all gem requiring castings before last one.
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:57 AM.


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