.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
  #1  
Old November 11th, 2010, 05:41 PM

MrSafin MrSafin is offline
Private
 
Join Date: Aug 2010
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
MrSafin is on a distinguished road
Default Battlefield Spell-scripting bug?

I'm trying to summon a Lesser Fire Elemental with one of my EA Ermor mages, but strangely the mage totally ignores my order and casts other spells.

I've already checked multiple times that I have enough gems for the spell and the mage still ignores me!

Bug or something else?
Reply With Quote
  #2  
Old November 11th, 2010, 06:51 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: Battlefield Spell-scripting bug?

Probably the AI doesn't think the enemy is strong enough to waste gems on.
Reply With Quote
  #3  
Old November 11th, 2010, 07:22 PM
NTJedi's Avatar

NTJedi NTJedi is offline
General
 
Join Date: Jun 2003
Location: az
Posts: 3,069
Thanks: 41
Thanked 39 Times in 28 Posts
NTJedi is on a distinguished road
Default Re: Battlefield Spell-scripting bug?

Also if you have the summon lesser elemental at the 3rd or 4th or 5th command then the mage might have already used the fire gem to reduce fatique for whatever previous spells existed.
__________________
There can be only one.
Reply With Quote
  #4  
Old November 11th, 2010, 09:19 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: Battlefield Spell-scripting bug?

Seems as good a place as any to ask this, can any vets share their observation on AI mage gem spending behavior?

Do AI stick to bare minimal gems to keep fatigue under 100? Generally I see the opposite, AI tend to use a lot more then I expected even when I plan for extra gems to cut fatigue already, resulting in me throwing my hands in the air and just dump a lot of extra gems on them. Trying to cast more then 1 big or 2 smaller gem spell seem to be all I could do economically gem wise. (eg. 3 gems on a caster that has just enough path to cast a 100 fatigue 1 gem spell and script to cast twice seem to work... usually)

Vaguely (I haven't paid much attention to it) I think I remember my mages sometimes using gem to cut fatigue even if the end fati stays under 100 after cast, is this true? If so, when generally will AI choose to use gem: >60 fati? >80 fati? size of spell?

I also recall mages using more then 1 additional gem over the minimum even if 1 additional gem can cut end fatigue to less then 100 already.

Anyway, any observations would be welcomed.
Reply With Quote
  #5  
Old November 12th, 2010, 03:15 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: Battlefield Spell-scripting bug?

The simple rule is to assume that the mage will burn all the gems he can. So for example if I want to cast Relief, Mass Regen and Serpent Blessing with one n4 mage, I'll give him 9 gems (8 for Relief and Mass Regen, 1 for Serpent Blessing). That will be enough.
Reply With Quote
  #6  
Old November 12th, 2010, 12:54 PM

MrSafin MrSafin is offline
Private
 
Join Date: Aug 2010
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
MrSafin is on a distinguished road
Default Re: Battlefield Spell-scripting bug?

The weird thing is that my mage didn't use ANY of the gems I gave him. I told him just to cast that one summon spell. I even tried assigning him all 5 scripted-cast orders with that spell, and yet he didn't cast it. :P
Reply With Quote
  #7  
Old November 12th, 2010, 01:18 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Battlefield Spell-scripting bug?

Believe it or not, its not a bug. Its a game feature.
The devs liked the idea that your pretender can give a pre-battle speech saying "I want you to do this, this, this, this, this" but the units might decide that distance, line of sight, the type of enemy units, etc etc makes enough difference to do something else. There are no absolutes as far as always-do or never-do

Try positioning your mage differently.

What is he doing instead? Buffing up his own defenses? They like doing that. Have you given the mage any self-defence type equipment?

If you are REALLY curious, you can turn on the debug logging and see the AI "thinking" about what to cast to try and get a clue on its logic.
Reply With Quote
  #8  
Old November 12th, 2010, 03:12 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: Battlefield Spell-scripting bug?

As I suggested above, this was most likely a case of the AI deciding not to waste gems on a weak enemy.
This is usually a good thing. It prevents a huge late game army from mindlessly following its script and burning through dozens of gems when attacked by a single scout. Especially important when you're storming a castle later that turn.

It's very rare these days, for the AI to override a script if the spell could be cast effectively. Not using gems is the main exception. Otherwise it will usually only override if there isn't a valid target in range.
To use Gandalf's terminology, if the pretender said "cast Frozen Heart", I've never seen that overridden by line of sight or unit type etc. The spell has a range limit. If there is an enemy unit who isn't 100% CR within range, the mage will follow the order.

There used to be a few spells that were bugged and would get priority over even scripted spells, Astral Shield and Arrow Fend, possibly others. Those have been fixed and I haven't seen reports of similar problems in awhile.
Reply With Quote
  #9  
Old November 12th, 2010, 04:44 PM

MrSafin MrSafin is offline
Private
 
Join Date: Aug 2010
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
MrSafin is on a distinguished road
Default Re: Battlefield Spell-scripting bug?

Ok, I guess that answers my question. By the way, my Ermor mage (I don't really recall the name...) is a F1 and a level 1 priest, so he ignored my spell and casted spells like Blessings and such!

Anyway, I'm satisfacted... I like the idea of some amount of randomness in my battles
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 01:59 AM.


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