Ok so I want to do a Aai for real time stratergy and I found this one and I think I usnerstand the 6th case part b
http://www.gamedev.net/reference/articles/article545.asp
http://www.gamedev.net/reference/articles/article545.asp
If SoldierDistance(soldierA, soldierB) < soldierA\gunrange Shoot(soldierA, soldierB) Else Move(soldierA, soldierB) EndIfA very simple example of how you can implement AI. But this is just one of many checks. You'll need to give a 'score' value to each possible action and have your soldier select the action with the greatest score potential. Example: Shooting a soldier is worth 10 points whereas shooting an officer is worth 20 points. So soldier A shoots the officer instead.