View Single Post
  #1  
Old April 16th, 2004, 07:40 AM
Arralen's Avatar

Arralen Arralen is offline
Major General
 
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
Arralen is on a distinguished road
Default SUGGESTION: AI castle building algorithm

This is a part of the troop building suggestion
------------------------------------------------
Build castle
IF money=1.2*(castle cost) OR desirabilty>7
CHOOSE prov with highest "desirability points"


a) has indie troop with (ress. cost)>14 2pts

b) will give (combinedress)>66 [BASE w/o scales]
AND isn't next to another castle 1 pt
OR (combinedress)>99 2 pts

c) has site with allows special troops 1pt
has site with allows special commanders 2pts

d) has 4 land neighbours, of which 2 are not owned AND not neighbouring owned provinces 1pt

f) would have 2 castle neighbours -2 pts
------------------------------------------------

I'm not shure if a-d wouldn't need a nation-specific weighting, but I tried to get along without anything such. This would keep the code compatible not only with any nation/themes but any thinkable mod, too. (At least most of them, admittedly)

[ April 16, 2004, 06:52: Message edited by: Arralen ]
__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
Reply With Quote