Warning: Illegal string offset 'type' in [path]/includes/class_postbit.php(294) : eval()'d code on line 65
Preventing undesirable casts - .com.unity Forums
.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
World Supremacy- Save $9.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old June 10th, 2010, 08:49 AM

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 Preventing undesirable casts

How to prevent the two following situations?

1. Caelum Eagle Kings casting Ironskin. Especially if scripted as Shockwave thugs.

2. 3N Mages casting Berserkers (1 gem under CBM) on self/another mage instead of other scripted Gem-costing boosts
Reply With Quote
  #2  
Old June 10th, 2010, 09:30 AM

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: Preventing undesirable casts

Quote:
Originally Posted by Rookierookie View Post
How to prevent the two following situations?

1. Caelum Eagle Kings casting Ironskin. Especially if scripted as Shockwave thugs.

2. 3N Mages casting Berserkers (1 gem under CBM) on self/another mage instead of other scripted Gem-costing boosts
1. get another level in alteration to gain access to invulnerability

2. if you want to buff your army than position the N mage near the army, not the other mages. if you want to buff your mages than just make sure to select the correct buff and position your mage so he'll have valid targets to cast it on. generally the AI only goes off script either if there are no valid targets to cast the scripted spell on or the spell(mostly offensive evocations) will be "wasted" as in, not enough enemy units or too many friendlies in the way.
Reply With Quote
  #3  
Old June 10th, 2010, 09:36 AM

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: Preventing undesirable casts

Eagle Kings will need boots to cast Invul. I did script stoneskin, but that doesn't prevent them from casting ironskin after that.

I was pretty sure that the 3N Mage had enough targets for the buff in question. I could be wrong though.
Reply With Quote
  #4  
Old June 10th, 2010, 10:12 AM
Squirrelloid Squirrelloid is offline
Major General
 
Join Date: Jun 2009
Posts: 2,157
Thanks: 69
Thanked 116 Times in 73 Posts
Squirrelloid is on a distinguished road
Default Re: Preventing undesirable casts

1) Don't use (cast), use (hold) to make them wait. Don't let them cast spells you didn't script outside of close combat. (An EK will follow your buff routine, and will prefer shockwave to buffs if told to cast 'spells' once in close combat. Since its flying, (bless)(air shield)(hold)(hold)(attack)(spells) will cast the 2 spells, hold 2 turns, get into melee combat, and start dropping shockwave). Basically, if you're giving your EK an opportunity to cast ironskin, you're doing something wrong.

2)I've never had a problem with nature mages casting berzerkers when they were scripted to do other things, so I'm not sure what caused it.
__________________
The ignorant shall fall to the squirrels.
--Chip 4:2

Ulm: Order of the Black Rose - Reimagining MA Ulm

A more Sombre forum: http://z7.invisionfree.com/Dom3mods/index.php?.act=idx. Now with more Maerlande.
Reply With Quote
  #5  
Old June 10th, 2010, 10:22 AM
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: Preventing undesirable casts

Most of the "doesnt follow my script" complaints seem to be about Alteration spells. Depending on the nation, and my plans, I might put off researching that magic for awhile. Especially in early game when I want my mages locked into the more aggressive Evocation spells.
Reply With Quote
  #6  
Old June 10th, 2010, 10:39 AM

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: Preventing undesirable casts

Well, you'll want Alteration fairly early. Mistform and Mirror Image are both very nice for Eagle Kings.
That said I haven't had the problem with Ironskin using the (bless)(air shield)(hold)(hold)(attack)(spells) script.
Sometimes they'd cast it near the end of the battle when there were no close targets, but that isn't really a problem.

Berserkers is much less of a problem in CBM than it was in vanilla when it didn't cost gems. The question there is why the mage didn't cast the scripted spell. A mage off-script with gems will certainly do the wrong thing.
Reply With Quote
  #7  
Old June 10th, 2010, 09:25 PM

don_Pablo don_Pablo is offline
Corporal
 
Join Date: Feb 2010
Posts: 116
Thanks: 21
Thanked 1 Time in 1 Post
don_Pablo is on a distinguished road
Default Re: Preventing undesirable casts

I had that problem with EK.
I just added 'resist lightning' to his script.
(bless)(a/shield)(mistform)(resist lightning)(attack)(spells).
Reply With Quote
  #8  
Old June 11th, 2010, 12:05 AM

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: Preventing undesirable casts

Does he cast it? Usually mages won't cast resistance spell if they're already 100% resistant.
Reply With Quote
  #9  
Old June 11th, 2010, 01:52 AM

Calahan Calahan is offline
BANNED USER
 
Join Date: Nov 2007
Location: San Francisco, nr Wales
Posts: 1,539
Thanks: 226
Thanked 296 Times in 136 Posts
Calahan is on a distinguished road
Default Re: Preventing undesirable casts

I find Eagle Kings to be one of the most retarded of all units.

Basically they love Iron Skin, but won't ever cast Resist Lightening, even if scripted in the order "Iron Skin" + "Resist Lightening". Most likely the 25% Shock Res value they have left after casting Iron Skin puts them off boosting it to 125%.

Annoying? Yes, but there are many examples like this in the game, so just learn to roll with it.
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 04:35 PM.


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