.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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old April 24th, 2008, 11:54 PM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default Auto-routing alternatives

Quote:
Loren said:
Quote:
vfb said:
Without auto-death, it's possible that a battle could never end. You could have two fatigued armies passed out on the battlefield, neither able to kill the other, and not even able to retreat even if they wanted to.

Oh wait ... maybe I see what you're saying. When turn 100 is reached, just treat the entire attacking army as if it *had* retreated, and flee it to the surrounding provinces. Sounds like it might work.
Somebody's going to wake up and start bashing again.

I think the answer is different: Starting at turn 40 count the total hp's of the real (not battlefield summons) units in the fight. Note the highest value in the 40-50 turn range. In every subsequent 10 turn range note the highest value, compare with the saved value. If it's equal or higher it's time for a rout. If it's lower, replace the saved value with the new value. Note that since the hp's must always be declining the battle will end eventually.

If it's determined that a rout should happen look at the retreat options for both sides. If a side can retreat, rout that side. Do not rout a side that can't retreat at this point. These routs apply to *ALL* units, even those normally immune from routing.

Continue the hp checks, if they call for a rout *AGAIN*, rout both sides.

If the check hits a third time then you force everything off the battlefield. Anything capable of teleporting to the capital does so, anything else dies.

So long as the battle is making progress it will continue. If it deadlocks the guy who can retreat does so--realistically the guy who has noplace to go won't stop a useless battle.

The second case is to deal with the possibility that nobody can retreat. Two armies teleport into battle or the like. The final case removes any units that can't move.
Please continue the discussion here so we don't clutter the bug thread.
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
Reply With Quote
 

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 10:44 PM.


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