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

This Month's Specials

Bronze- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old September 1st, 2011, 04:34 PM
Chazar's Avatar

Chazar Chazar is offline
Captain
 
Join Date: Feb 2004
Location: within 200km of Ulm
Posts: 919
Thanks: 27
Thanked 0 Times in 0 Posts
Chazar is on a distinguished road
Question Gem Usage in Battle

What are the criteria for gem usage during battle?

I just lost a fully equipped Rudra (and probably the MP game) against Vanheim 25PD. The Rudra was scripted to cast SoulVortex, Bless, PhoenixPyre, Bless, HoldTurn&Attack. Instead of using one of the 5 death gems in his pocket, he just went straight to around 50 fatigue by casting SoulVortex without a gem. Being highly fatigued, despite E4 bless and BootsOfTheMessenger, he did not use one of the 3 fire gems for PhoenixPower. Since the first self bless had actually hit him ok, instead of the second bless spell he choose to case some insignificant death attack spell without a gem, bringing him above 90 fatigue, which of course resulted in certain death.

I remember Dom2 mages being very eager to use up all their gems before casting spells that actually require gems, so I thought 5 death gems would encourage the Rudra enough to use one or two to lower the fatigue from SoulVortex, but apparently a 40 fatigue spell + encumbrance from HydraSkin is not enough to warrant gem usage in Dom3.
  • Does battle gem usage depend on how fatigued the caster already is? (i.e. would the Rudra have used its death gems if I had first scripted PhoenixPyre, Bless and then SoulVortex)
  • Is there a known threshold for using gems to avoid fatigue, besides 100+ fatigue spells?
  • Does the number of gems in the mages pocket influence the likelihood of gem usage to reduce fatigue?

I would like to generally understand how the AI decides upon gem usage, the Rudra example is just an example from an ongoing game, which should otherwise not be of interest here.
Reply With Quote
  #2  
Old September 1st, 2011, 08:53 PM
Samhain's Avatar

Samhain Samhain is offline
Sergeant
 
Join Date: Jan 2010
Location: Michigan
Posts: 251
Thanks: 14
Thanked 13 Times in 8 Posts
Samhain is on a distinguished road
Default Re: Gem Usage in Battle

According to the unofficial Dom3 Wiki, gems are only used to reduce spell fatigue to 50 or the lowest amount possible above 50.

See: http://dom3.servegame.com/wiki/Gem_use

So, your Rudra must have been right on the cusp. Perhaps he would have used a gem had he more than 10 points of spell casting encumbrance.

To avoid the issue with an undesirable spell being substituted for a redundant bless, I would set the Rudra off in a corner by himself to ensure that the bless falls on him. That way, you can either put something you really want him to cast in the slot that had the second bless or script him to attack one battle turn sooner.
Reply With Quote
The Following 2 Users Say Thank You to Samhain For This Useful Post:
  #3  
Old September 1st, 2011, 09:14 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: Gem Usage in Battle

I would assume the "Is this battle a big enough threat to use gems" calculation, applies to using gems to counter fatigue. I'm not 100% sure, but it looks like that is what happened. 25 PD wasn't enough of a threat, so the fatigue checks didn't even come into play.

As a side not, if your Rudra is going into battle alone and the enemy has no fliers, it should be safe to only cast bless once. Self-bless will always hit if he is the only target within range, which if it's early in the script means fliers.
Reply With Quote
The Following User Says Thank You to thejeff For This Useful Post:
  #4  
Old September 1st, 2011, 09:40 PM
Deathblob's Avatar

Deathblob Deathblob is offline
Corporal
 
Join Date: May 2011
Posts: 103
Thanks: 17
Thanked 24 Times in 17 Posts
Deathblob is on a distinguished road
Default Re: Gem Usage in Battle

If you view the battle with -dd on, then you can see if can_use_gems is 1 or 0. If it's 0, then he won't ever use gems in the battle, unless you hit the bug where he starts using gems when the enemy routs.

If it's 1, then you are better off saving the higher fatigue spells for later in the script, since if current fatigue is 0, the caster will be unlikely to use gems for fatigue reduction even if the spell has a fatigue cost of 80 or something.

If you're casting Soul Vortex, you might want to bring friendly battery units along with your Rudra to leech health off of. Make sure you don't hit the auto-rout HP limit though.
Reply With Quote
The Following User Says Thank You to Deathblob For This Useful Post:
  #5  
Old September 1st, 2011, 11:08 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: Gem Usage in Battle

Battery units are tricky to bring if your Rudra is cloud trapezing, which is usually the case.


Also remember, if you're cloud trapezing to attack and you do take the province, your enemy might be moving troops into the province. If he is, they'll arrive after the first battle and fight a separate one. If you're out of gems now, you're also in trouble.
Relying on gems to keep a raider's fatigue down or to get buffs off at all is risky. Not to mention a pain to keep him supplied with gems. Even with the gem use you'd be high on fatigue those first couple rounds of combat. A couple of lucky hits and you can be in trouble.
Going with weaker but cheaper buffs might be better.
Reply With Quote
  #6  
Old September 1st, 2011, 11:19 PM
brxbrx's Avatar

brxbrx brxbrx is offline
Second Lieutenant
 
Join Date: Apr 2008
Location: Tempe, Az
Posts: 419
Thanks: 38
Thanked 16 Times in 15 Posts
brxbrx is an unknown quantity at this point
Default Re: Gem Usage in Battle

Is this for vanilla?
Man gems sound confusing.
Reply With Quote
  #7  
Old September 1st, 2011, 11:38 PM

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: Gem Usage in Battle

The gem mechanic is fairly simple, the AI mechanic (which I assume you're referring to) and trigger conditions for gems however is a total nightmare.

You get use to it, but you can manipulate AI only up to a point, the other 50% is crap-shoot, not a totally bad thing though, if immensely frustrating.
Reply With Quote
  #8  
Old September 1st, 2011, 11:58 PM
Deathblob's Avatar

Deathblob Deathblob is offline
Corporal
 
Join Date: May 2011
Posts: 103
Thanks: 17
Thanked 24 Times in 17 Posts
Deathblob is on a distinguished road
Default Re: Gem Usage in Battle

Quote:
Originally Posted by thejeff View Post
Battery units are tricky to bring if your Rudra is cloud trapezing, which is usually the case.
A few blood slaves would work.
Reply With Quote
The Following User Says Thank You to Deathblob For This Useful Post:
  #9  
Old September 2nd, 2011, 01:36 AM
Chazar's Avatar

Chazar Chazar is offline
Captain
 
Join Date: Feb 2004
Location: within 200km of Ulm
Posts: 919
Thanks: 27
Thanked 0 Times in 0 Posts
Chazar is on a distinguished road
Default Re: Gem Usage in Battle

Thanks for the many useful answers!

If I had only known those a single turn earlier! I guess that either knowing about the corner-self bless and/or the blood slave batteries would have saved my day. I did already account for a battle in the normal turn phase, which is why the Rudra had 5 or 6 death gems - which I thought would be enough to cast SoulVortex twice, but according to the above link Wiki page, he would never use those anyway with that script. Good to know that the Dom3 is not so wasteful on gems.
Reply With Quote
  #10  
Old September 2nd, 2011, 03:18 PM

LDiCesare LDiCesare is offline
Captain
 
Join Date: Apr 2004
Location: France
Posts: 820
Thanks: 4
Thanked 33 Times in 24 Posts
LDiCesare is on a distinguished road
Default Re: Gem Usage in Battle

Quote:
Originally Posted by Samhain View Post
According to the unofficial Dom3 Wiki, gems are only used to reduce spell fatigue to 50 or the lowest amount possible above 50.
Which may be right but the ai will spend much more than that.
I had a S9 oracle scripted to cast magic duel*4+returning. It needed 11 gems to do so despite the ridiculously low cost of magic duel for an S9 mage (100 fatigue but 8 levels over the required level).
Reply With Quote
Reply

Bookmarks

Tags
battle magic, battles, gems

Thread Tools
Display Modes

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:34 AM.


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