.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 April 7th, 2010, 02:18 PM

SsSam SsSam is offline
Corporal
 
Join Date: Mar 2008
Posts: 81
Thanks: 5
Thanked 4 Times in 4 Posts
SsSam is on a distinguished road
Default Why off script?

A4H2 mage holding an air goes into combat scripted for
Arrow Fend/Mist Form/Orb Lightning/Orb/Orb

Combat starts mage casts
Air Shield/Mist Form/Sermon of Courage/Sermon of Courage and combat ends.

Now....On the one hand, I'm glad for the substitution. The combat was against a small non-archer army and by the time Orb Lightning came up he was just as likely to hit his own troops as the enemy and he did save the gem for when he'll need it, but I'm left wondering why he went off script and will he stay on script when he goes up against that 150 longbow stack next turn?
Reply With Quote
  #2  
Old April 7th, 2010, 02:32 PM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: Why off script?

Was orb lightning in range? It doesn't have great range.

He'll cast arrow fend vs 150 archers, yes.
Reply With Quote
  #3  
Old April 7th, 2010, 02:36 PM

13lackGu4rd 13lackGu4rd is offline
First Lieutenant
 
Join Date: Jan 2010
Posts: 712
Thanks: 5
Thanked 40 Times in 32 Posts
13lackGu4rd is on a distinguished road
Default Re: Why off script?

Quote:
Originally Posted by SsSam View Post
A4H2 mage holding an air goes into combat scripted for
Arrow Fend/Mist Form/Orb Lightning/Orb/Orb

Combat starts mage casts
Air Shield/Mist Form/Sermon of Courage/Sermon of Courage and combat ends.

Now....On the one hand, I'm glad for the substitution. The combat was against a small non-archer army and by the time Orb Lightning came up he was just as likely to hit his own troops as the enemy and he did save the gem for when he'll need it, but I'm left wondering why he went off script and will he stay on script when he goes up against that 150 longbow stack next turn?
the bold part is your answer for your arrow fend question, the AI recognized there weren't any archers so Arrow Fend would be useless. no idea why the AI cast Air Shield though, but that's a different matter

Orb Lightning was probably just out of range by the time your Mage was scripted to cast it, so it did something else(a self spell, which suggests your Mage wasn't even in range for good range offensive spells such as Lightning Bolt).
Reply With Quote
  #4  
Old April 7th, 2010, 02:57 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: Why off script?

I don't think the AI is smart enough to recognize no archers. It probably just decided the enemy was too weak to waste gems on.

As said, the enemy was probably just out of range for Orb Lightning.
Reply With Quote
  #5  
Old April 7th, 2010, 07:39 PM

chrispedersen chrispedersen is offline
BANNED USER
 
Join Date: May 2004
Posts: 4,075
Thanks: 203
Thanked 121 Times in 91 Posts
chrispedersen is on a distinguished road
Default Re: Why off script?

Quote:
Originally Posted by thejeff View Post
I don't think the AI is smart enough to recognize no archers. It probably just decided the enemy was too weak to waste gems on.

As said, the enemy was probably just out of range for Orb Lightning.
+1

Generally, reasons for going oft script:

1. Enemy force is not a sufficient threat to waste gems
2. Spell will put caster over fatigue 100
3. Insufficient gems (perhaps for blowing extra gems earlier)
4. No targets in range.
5. too much collateral damage (too many friendlies affected)
6. The ai really thinks it can do a better job with something else.
7. Insufficient paths to cast the spell. Communion didn't get off due to death of slaves, pots didn't get off etc.

Essentially looking at the log, whatever you script has a weighting bonus. The computer looks at all castable spells,
and weighs them. It does a pretty good job on direct damage spells, pretty arbitrary on others.

things that excessively fatigue you will get a penalty, as will gem use.

Spell with the best results is cast.
Reply With Quote
  #6  
Old April 7th, 2010, 09:57 PM

Rookierookie Rookierookie is offline
Corporal
 
Join Date: Apr 2009
Posts: 141
Thanks: 3
Thanked 7 Times in 6 Posts
Rookierookie is on a distinguished road
Default Re: Why off script?

The AI thinks it's smarter than you are, and a lot of times it's right.

It's the times it's wrong that cause people to tear out their hair.
Reply With Quote
  #7  
Old April 8th, 2010, 11:59 AM

SsSam SsSam is offline
Corporal
 
Join Date: Mar 2008
Posts: 81
Thanks: 5
Thanked 4 Times in 4 Posts
SsSam is on a distinguished road
Default Re: Why off script?

I had not realized the casting system was that good.

The game continues to surprise me.

Thanks for the responses.
Reply With Quote
  #8  
Old August 4th, 2011, 09:21 PM

Pyrrhic Pyrrhic is offline
Private
 
Join Date: Mar 2011
Posts: 10
Thanks: 3
Thanked 1 Time in 1 Post
Pyrrhic is on a distinguished road
Default Re: Why off script?

Old thread, I know, but I have a specific question.

I want a D5 mage, base casting fatigue 2, to cast Darkness (D4 spell, 400 fatigue, 4 gems). He has plenty of gems. Will it work?
Reply With Quote
  #9  
Old August 5th, 2011, 12:40 AM
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: Why off script?

It will work if he considers his opponents scary enough.
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:30 PM.


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