.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
The Star and the Crescent- Save $9.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT > Campaigns, Scenarios & Maps
Notices


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #20  
Old April 18th, 2009, 08:22 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,705
Thanks: 4,152
Thanked 5,946 Times in 2,923 Posts
DRG will become famous soon enough
Default Re: Help on controlling the AI please

"unpredictability" is inherent in the basic design and we have added to that constantly since we started working with the code.

There are ( literally ) over 3500 instances in each games code where "random" is a factor in some way whether it's a random chance that if a random generated number is greater than 50 then the AI will purchase a a particular formation in a specific date range or a 33% chance an entirely different formation will be bought for that date range and those randomizers extend throughout the game ( including unit movement ) to ensure AI behaviour isn't predictable so it's no surprise at all that sometimes the code will override the waypoints as the basic waypoint code does not , in all cases, take precedence over the code we've put in place to prevent predictable AI behaviour or how the AI reacts to ever changing game events initiated by the human player. To put this in perspective, the SP2 code "only" has 1145 occurences of "random" so we've tripled the "random factor" in the game.



Don
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 07:50 PM.


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