I'm waiting to hear from Larkin regarding the self.info.turret_tolerance variable I tried to use in cpu_manager.ai under "function CpuManager:GetDefensiveBuildingsCostAt( player, pos, tolerance )". If I use the line in this function: cost = cost + self.info.turret_tolerance and then in any of the buildbasestrategyinfo.ai I create a line "turret_tolerance = 150," but when I build turrets against the enemy the game stops with an AI execution error. More details in the last thread on this forum.
Now.. I'm trying to further make each one distinct so I need comments on the work done. I want each one to have pros and cons..
Criteria for each AI personality seems to be broken down this way..
o stop_attack_rating = (Retreats to save troops OR is suidical and sacrifices squads)
o attack_rating = (whether to be a constant rusher OR hold back until it has a big force)
o ETA = (whether to build up to more advanced units quickly rather than wait)
o turret_tolerance = (when this works, will make AI decide whether it loves attacking enemy turrets or holds back a little)
o Turrets = (decides whether to turtle up behind a huge fireline or leave itself defending using units)
o ResearchOrder = (whether to fully tech or tech what it needs for its purposes)
o SquadLimits = (how to specify what kind of units to use OR to mass only one kind)
o BuildOrderStrategyInfo (initial build base list - go defensive, go as a fast rusher [infantry/vehicles], go for resources..).
Thanks to the excellent work Giskard did with working out the script system, the personalities, as mentioned, work fab with no issues whatsoever. I'd love to have team input regarding the AI personalities. I need to develop criteria for each personality like so:
o Standard (techer | standard units | retreats average | average base/LP defenses)
o Aggressor (low techer | Supreme Infantry/Vehicle Rusher | retreats less often | low base/LP defenses)
o Defender (techer | units for defense and minor attacking / retreats often / supreme base/LP defenses)
o Sieger (techer | vehicle/artillary-minded with troops as escorts | retreats less often | low base/LP defenses)
o Platoon (medium techer | Infantry-minded with minor vehicle support | retreats average | average base/LP defenses).
When you download the latest.. let me know any areas that could be improved or allowed to further personalize each AI trait. Thanks all!
Edited by thudo, 05 March 2005 - 05:35 PM.