View Single Post
  #10  
Old January 23rd, 2006, 05:03 PM

halfzware halfzware is offline
Private
 
Join Date: Jan 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
halfzware is on a distinguished road
Default Re: Fix to TacAI Decoys

Quote:
Nah, minimum group size is not the way to go. It might seem good on the face of it, but it breaks down. Think about mixing up unit types - how could you possibly even guess what the min group size for it would be?

for each unit in squad
add element unit size to squad moral total
divide squad moral total by number of units

Also known as averaging, if averaging isn't to your liking there are other tools that can be used simply. Standard deviation, etc. Code is very good at handling this kind of thing - and methods for aggregating numbers are many and well known.

Quote:
Arralen is right that the correct fix is to repair the targetting ai. Archers need to look at how much of thier volley in each turn is "wasted". So like 20 archers firing at 1 militia results in massive waste. But 20 archers firing at 50 militia will mean that probably every single arrow will hit and perhaps kill a unit.
I agree that having a targetting AI that behaves as a human controlling it would want it to behave is the best answer. But as you say, the most likely scenario is that people will find methods to abuse the targetting logic here also. There will always be loopholes, which is why its better to prevent worst case abuse at the onset. Minimum unit size is a simple - I dare say elegant way to achieve this.
Reply With Quote