.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 May 22nd, 2009, 02:09 PM
ano's Avatar

ano ano is offline
Lieutenant Colonel
 
Join Date: May 2007
Posts: 1,462
Thanks: 34
Thanked 59 Times in 37 Posts
ano is on a distinguished road
Default Strange actions order

In a current MP game the following situation has happened:
I teleport 4 mages into an enemy province with the following scripts (order is as in commander screen):
Mage1 (Adept of the Silver Order) - Body Ethereal, Returning (to protect StoneRainers with BE and Luck from the Sword of Aurgelmer)
Mage2 (Oreiad) - Summon Air elemental, Retreat (to hold off enemy force)
Mages 3, 4 (Oreiades) - Ironskin, Rain of Stones, Rain of Stones.

Everything went as expected except for the second Oreiad who didn't retreat after summoning an Elemental (she had 94 fatigue and was quite able to). She just ignored her turn and was killed by RoS. Log says absolutely nothing about it (first turn cast order was 1-2-3-4 while on second turn mage 2 was absent appearing only as RoS victim)
Does anybody know what could have happened?
Reply With Quote
  #2  
Old May 22nd, 2009, 06:41 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: Strange actions order

Happens all the time.
Reply With Quote
  #3  
Old May 22nd, 2009, 07:43 PM
ano's Avatar

ano ano is offline
Lieutenant Colonel
 
Join Date: May 2007
Posts: 1,462
Thanks: 34
Thanked 59 Times in 37 Posts
ano is on a distinguished road
Default Re: Strange actions order

Not an explanation
Reply With Quote
  #4  
Old May 22nd, 2009, 08:01 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: Strange actions order

whats to explain? Scripted orders only get additional weighting, at evaluation time. The AI will often decide the exigencies of the situation require that it go oft script.

most commonly, this occurs when:

a). the spell scripted requires gems and the AI thinks the expenditure of gems is not warranted.
b). the spell is question inflicts friendly casualties.
c). the spell scripted is out of range


The AI will often not cast returning - especially if the commander has body guards.
Reply With Quote
  #5  
Old May 22nd, 2009, 08:10 PM

Micah Micah is offline
Major
 
Join Date: Dec 2006
Posts: 1,226
Thanks: 12
Thanked 86 Times in 48 Posts
Micah is on a distinguished road
Default Re: Strange actions order

She was killed by the second set of RoS then? I've never had a retreat order ignored, but I don't see what's keeping her safe from the first Rains aside from luck/eth, which of course have a chance of failing.
Reply With Quote
  #6  
Old May 22nd, 2009, 08:20 PM
ano's Avatar

ano ano is offline
Lieutenant Colonel
 
Join Date: May 2007
Posts: 1,462
Thanks: 34
Thanked 59 Times in 37 Posts
ano is on a distinguished road
Default Re: Strange actions order

chrispedersen
What you said is obvious and common things that explain nothing. I read the debug log and even didn't find the name of that Oreiad on second turn. Immediately after Adept cast Returning second Oreaid cast RoS.
Micah
Quote:
She was killed by the second set of RoS then? I've never had a retreat order ignored, but I don't see what's keeping her safe from the first Rains aside from luck/eth, which of course have a chance of failing.
Of course, she was killed. She should have retreated before RoS but just skipped her turn (not just ignored retreat order). That's what I don't understand. This loss was not terribly important because the game was actually won long ago but I never saw such things before and I'm wondering what might have caused this?..
Reply With Quote
  #7  
Old May 22nd, 2009, 08:26 PM

Micah Micah is offline
Major
 
Join Date: Dec 2006
Posts: 1,226
Thanks: 12
Thanked 86 Times in 48 Posts
Micah is on a distinguished road
Default Re: Strange actions order

If she was killed by the first turn of RoS her turn just hadn't come up yet. Magic happens first.
Reply With Quote
  #8  
Old May 22nd, 2009, 09:36 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: Strange actions order

Mage 1 Spell 1 Spell 2
Mage 2 Spell 3 Spell 4
Mage 3 Spell 5 Action 6
Mage 4 Spell 7 Spell 8


What micah is saying (I believe) is that the order of execution is

Spell 1
Spell 2
Spell 3
Spell 4
Spell 5
Spell 7
Spell 8
Action 6.
Troop action1

Or it might be
1
3
5
7
2
4
8
6
Troop action 1. Never remember. Either way, the mage would get hosed by the RoS before the retreat.
Reply With Quote
  #9  
Old May 22nd, 2009, 10:31 PM
ano's Avatar

ano ano is offline
Lieutenant Colonel
 
Join Date: May 2007
Posts: 1,462
Thanks: 34
Thanked 59 Times in 37 Posts
ano is on a distinguished road
Default Re: Strange actions order

Thanks.
I always thought that action order is completely determined by the order at commander screen. Never knew about "Magic happens first".
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:20 PM.


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