The .bsf files use an EnableAI(side,on/off) function that can allow the player to share unit control with a friendly AI or let the friendly AI run the whole battle. In effect this acts like the Initiative game setting on steroids as the friendly AI battles the enemy AI. See the attached zip containing the AIvsAI.bsf.

The SetAIStanceLimit(side, attackstance, defensestance) function imits the range of stances the AI can select to a given range. 0 = All Out Attack, 1 = Attack, 2 = Probe, 3 = Defend, 4 = Delay Hold, 5 = Delay Withdraw, 6 = Retreat. By default this is turned off in the AIvsAI.bsf. To enable change -1 to 0=Allied or 1=Axis and choose attack/defend stance variables.

Additionally, the SetAllowedOrderUnit([i]n[/i]) function limits the player to giving orders to only one unit. Replace (-1) in the AIvsAI.bsf with (0), (1), (2) etc. These values count down the Unit List on the top left of the screen. (0) is the first unit at the top of the Unit List, usually a command unit. 

Finally, the BeginBattle() function starts the battle as soon as you enter the Deploy phase. It forces the player to accept the Default deployment as determined by the game AI or a PlaceUnit(unitid, x, y, facing) function in the .bsf file. To use this function, delete the two slashes (//) at beginning of the line.

After copying the attached AIvsAI.bsf to \Close Combat - The Bloody First\Campaigns\MAIN\DATA\BATTLES\ and setting the script variables as desired, it can be used with any scenario by adding opening the scenario file in Notepad and adding- SCRIPT AIvsAI -as the last line in the file. By default the SetAllowedOrderUnit([i]n[/i]) function is turned off (-1) and the 