.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
  #2181  
Old October 16th, 2008, 12:09 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: Bug Thread: Discussion

I've got a Skratti thug refusing to cast Breath of Winter.
He's scripted to Quicken Self, Breath of Winter, attack
Several others cast it without problem.
He either casts something else or just closes to attack.
The main difference is that I've given him Lifelong Protection. Is it possible he's refusing to cast because of the imps?
I think there was a change in BoW behavior to avoid casting it unscripted, since it would often wipe out other nearby mages, but I'd hope that wouldn't override a scripted order.

Here's the relevant bits from the debug log:
com Fafner cast spell (favspell Breath of Winter) (mayusegems 1)
est. choices 15

BOW before 17
best Area10 cold dmg3 this far, 6 16 (-66 pnts)
spellscore, Area10 cold dmg3 score -66 (boost 104 scorat 0)
BOW after -49
spellscore, Breath of Winter score -49 (boost 115 scorat 0)
Eval: Breath of Winter score 0 (fat 20)
comp_castspell: eval Breath of Winter result 0


It gets a negative score, presumably due to hurting the imps?
It doesn't add in the favspell bonus, which seems wrong to me.
Reply With Quote
  #2182  
Old October 16th, 2008, 12:56 PM
JimMorrison's Avatar

JimMorrison JimMorrison is offline
Lieutenant General
 
Join Date: May 2008
Location: Utopia, Oregon
Posts: 2,676
Thanks: 83
Thanked 143 Times in 108 Posts
JimMorrison is on a distinguished road
Default Re: Bug Thread: Discussion

Quote:
Originally Posted by thejeff View Post
I think there was a change in BoW behavior to avoid casting it unscripted, since it would often wipe out other nearby mages, but I'd hope that wouldn't override a scripted order.

Well, recently I had a mage kill another with BoW. And a couple of days ago, I had an idiot Spectre wipe out my entire communion by casting BoW as a Master.
Reply With Quote
  #2183  
Old October 16th, 2008, 01:11 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: Bug Thread: Discussion

Actually a Communion Master casting BoW should work well. All the slaves should pick up the cold resistance as well as the Chill aura. Other mages or masters could be hurt, but the slaves should be fine. If not, that's a real bug.

Beyond that though, if they're still casting it unscripted, the AI certainly shouldn't overwrite my thug's script.
Reply With Quote
  #2184  
Old October 16th, 2008, 01:33 PM
JimMorrison's Avatar

JimMorrison JimMorrison is offline
Lieutenant General
 
Join Date: May 2008
Location: Utopia, Oregon
Posts: 2,676
Thanks: 83
Thanked 143 Times in 108 Posts
JimMorrison is on a distinguished road
Default Re: Bug Thread: Discussion

The CR is not permanent, as per the spell description, they are resistant to cold "while casting". Regardless of whether one might hope that it was good for a communion, it really did kill all of my slaves very very quickly.
Reply With Quote
  #2185  
Old October 16th, 2008, 01: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: Bug Thread: Discussion

Every time I've cast it, the caster has gotten +100% cold resistance for the battle. Puts my Frostbrand equipped Skratti up to 250%

If that's not happening in communions, it's a problem.
Reply With Quote
  #2186  
Old October 16th, 2008, 04:30 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: Bug Thread: Discussion

I just tested this. Communion slaves picked up both Chill effect and Cold resistance for the entire battle, as I expected.
Is it possible your masters just cast enough high fatigue spells to kill the slaves? Or cast something else that lowers cold resistance? I know Stoneskin drops CR by 50.
Reply With Quote
  #2187  
Old October 16th, 2008, 04:44 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: Bug Thread: Discussion

And back on my original problem, the debug output when one of the other thugs does cast Breath of Winter is:


com Oddvitner cast spell (favspell Breath of Winter) (mayusegems 1)
est. choices 23
BOW before 18
best Area10 cold dmg3 this far, 6 7 (0 pnts)
spellscore, Area10 cold dmg3 score 0 (boost 119 scorat 0)
BOW after 18
spellscore, Breath of Winter score 15 (boost 106 scorat 0)
Eval: Breath of Winter score 15 (fat 10)
comp_castspell: eval Breath of Winter result 15
best spell so far Breath of Winter (score100015)


I also tried it with a Starspawn next to illithids. He wouldn't cast it either.
I'm glad if it won't be cast unscripted, but if it's scripted I'd like to see it allowed.
Reply With Quote
  #2188  
Old October 16th, 2008, 05:25 PM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: Bug Thread: Discussion

Could it be that the spell won't be cast unless there's someone in the AoE? It seemed to do damage calculations when evaluating whether or not to cast the spell. Try adding some militia nearby and see if it works then.

I doubt it's that, because I'm sure people would've noticed if lone thugs couldn't cast Breath of Winter.
Reply With Quote
  #2189  
Old October 16th, 2008, 05:48 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: Bug Thread: Discussion

No, the other thugs cast fine without anyone nearby. It seems it won't cast if there are (non cold immune?) friendlies in range.
Reply With Quote
  #2190  
Old October 16th, 2008, 10:15 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: Bug Thread: Discussion

The spell selection kind of cheats.
It runs the spell - analyzes all possible results
and then selects the best results to figure out which spell to cast.

So, if you kill a bunch of friendsly, thats going to deprecate the spell.

So, with imps, usually what happens is they go and fly off and engage the enemy.

I bet if you script something like
X X X X BoW
After all the imps are gone, it will cast it just fine. (Presuming fatigue, no close by enemies etc.).

chris
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 07:29 PM.


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