This page is under construction
archives/bf1942/levels/DC_LostVillage_Brit.rfa
bf1942/levels/DC_LostVillage_Brit/ai/Strategies.con
rem Strategies for DCX version of DC_LostVillage by cajunwolf

if v_arg1 == host
rem ----- Host
rem ----------------------------------------------------------------------------

rem ---------------------------------------------------------------
rem ------------- Opposition strategies ---------------------------
rem ---------------------------------------------------------------


aiStrategy.createStrategy DefendVillage
aiStrategy.Aggression 0.0
aiStrategy.NumberOfAttacks 0
aiStrategy.NumberOfDefences 3
aiStrategy.TimeLimit 240
aiStrategy.setPrerequisite DefendPrereq
aiStrategy.setStrategicObjectsModifier ControlPoint 1.0 Owned
aiStrategy.setStrategicObjectsModifier ControlPoint 10.0 Neutral
aiStrategy.setStrategicObjectsModifier ControlPoint 7.0 Hostile

aiStrategy.setStrategicObjectsModifier Centre 1.0 Owned
aiStrategy.setStrategicObjectsModifier Centre 2.0 Neutral
aiStrategy.setStrategicObjectsModifier Centre 5.0 Hostile

aiStrategy.setStrategicObjectsModifier Base 1.0 Owned
aiStrategy.setStrategicObjectsModifier Base 10.0 Neutral
aiStrategy.setStrategicObjectsModifier Base 5.0 Hostile

aiStrategy.setStrategicObjectsModifier Flank 1.0 Owned
aiStrategy.setStrategicObjectsModifier Flank 7.0 Neutral
aiStrategy.setStrategicObjectsModifier Flank 6.0 Hostile

aiStrategy.setStrategicObjectsModifier North 1.0 Owned
aiStrategy.setStrategicObjectsModifier North 10.0 Neutral
aiStrategy.setStrategicObjectsModifier North 8.0 Hostile


aiStrategy.createStrategy RepelEnemy
aiStrategy.Aggression 0.3
aiStrategy.NumberOfAttacks 1
aiStrategy.NumberOfDefences 2
aiStrategy.TimeLimit 240
aiStrategy.setPrerequisite RepelPrereq
aiStrategy.setStrategicObjectsModifier ControlPoint 1.0 Owned
aiStrategy.setStrategicObjectsModifier ControlPoint 10.0 Neutral
aiStrategy.setStrategicObjectsModifier ControlPoint 12.0 Hostile

aiStrategy.setStrategicObjectsModifier Centre 1.0 Owned
aiStrategy.setStrategicObjectsModifier Centre 7.0 Neutral
aiStrategy.setStrategicObjectsModifier Centre 10.0 Hostile

aiStrategy.setStrategicObjectsModifier Base 1.0 Owned
aiStrategy.setStrategicObjectsModifier Base 3.0 Neutral
aiStrategy.setStrategicObjectsModifier Base 5.0 Hostile

aiStrategy.setStrategicObjectsModifier Flank 1.0 Owned
aiStrategy.setStrategicObjectsModifier Flank 6.0 Neutral
aiStrategy.setStrategicObjectsModifier Flank 10.0 Hostile

aiStrategy.setStrategicObjectsModifier North 1.0 Owned
aiStrategy.setStrategicObjectsModifier North 10.0 Neutral
aiStrategy.setStrategicObjectsModifier North 12.0 Hostile

aiStrategy.createStrategy TakeBackVillage
aiStrategy.Aggression 0.75
aiStrategy.NumberOfAttacks 2
aiStrategy.NumberOfDefences 1
aiStrategy.TimeLimit 240
aiStrategy.setPrerequisite TakeBackPrereq
aiStrategy.setStrategicObjectsModifier ControlPoint 1.0 Owned
aiStrategy.setStrategicObjectsModifier ControlPoint 15.0 Neutral
aiStrategy.setStrategicObjectsModifier ControlPoint 10.0 Hostile

aiStrategy.setStrategicObjectsModifier Centre 1.0 Owned
aiStrategy.setStrategicObjectsModifier Centre 10.0 Neutral
aiStrategy.setStrategicObjectsModifier Centre 7.0 Hostile

aiStrategy.setStrategicObjectsModifier Base 1.0 Owned
aiStrategy.setStrategicObjectsModifier Base 5.0 Neutral
aiStrategy.setStrategicObjectsModifier Base 7.0 Hostile

aiStrategy.setStrategicObjectsModifier Flank 1.0 Owned
aiStrategy.setStrategicObjectsModifier Flank 8.0 Neutral
aiStrategy.setStrategicObjectsModifier Flank 10.0 Hostile

aiStrategy.setStrategicObjectsModifier North 1.0 Owned
aiStrategy.setStrategicObjectsModifier North 10.0 Neutral
aiStrategy.setStrategicObjectsModifier North 12.0 Hostile

rem -------------------------------------------------------------
rem ------------------- Coalition Strategies --------------------
rem -------------------------------------------------------------

aiStrategy.createStrategy TakeTheVillage
aiStrategy.Aggression .9
aiStrategy.NumberOfAttacks 3
aiStrategy.NumberOfDefences 0
aiStrategy.TimeLimit 240
aiStrategy.setPrerequisite AttackPrereq
aiStrategy.setStrategicObjectsModifier ControlPoint 1.0 Owned
aiStrategy.setStrategicObjectsModifier ControlPoint 20.0 Neutral
aiStrategy.setStrategicObjectsModifier ControlPoint 8.0 Hostile

aiStrategy.setStrategicObjectsModifier Base 1.0 Owned
aiStrategy.setStrategicObjectsModifier Base 2.0 Neutral
aiStrategy.setStrategicObjectsModifier Base 6.0 Hostile

aiStrategy.setStrategicObjectsModifier Flank 1.0 Owned
aiStrategy.setStrategicObjectsModifier Flank 15.0 Neutral
aiStrategy.setStrategicObjectsModifier Flank 15.0 Hostile

aiStrategy.setStrategicObjectsModifier North 1.0 Owned
aiStrategy.setStrategicObjectsModifier North 20.0 Neutral
aiStrategy.setStrategicObjectsModifier North 10.0 Hostile

aiStrategy.setStrategicObjectsModifier Centre 1.0 Owned
aiStrategy.setStrategicObjectsModifier Centre 10.0 Neutral
aiStrategy.setStrategicObjectsModifier Centre 6.0 Hostile


aiStrategy.createStrategy FootHold
aiStrategy.Aggression .8
aiStrategy.NumberOfAttacks 2
aiStrategy.NumberOfDefences 1
aiStrategy.TimeLimit 240
aiStrategy.setPrerequisite FootHoldPrereq
aiStrategy.setStrategicObjectsModifier ControlPoint 1.0 Owned
aiStrategy.setStrategicObjectsModifier ControlPoint 15.0 Neutral
aiStrategy.setStrategicObjectsModifier ControlPoint 10.0 Hostile

aiStrategy.setStrategicObjectsModifier Base 1.0 Owned
aiStrategy.setStrategicObjectsModifier Base 2.0 Neutral
aiStrategy.setStrategicObjectsModifier Base 6.0 Hostile

aiStrategy.setStrategicObjectsModifier Flank 1.0 Owned
aiStrategy.setStrategicObjectsModifier Flank 8.0 Neutral
aiStrategy.setStrategicObjectsModifier Flank 6.0 Hostile

aiStrategy.setStrategicObjectsModifier North 1.0 Owned
aiStrategy.setStrategicObjectsModifier North 10.0 Neutral
aiStrategy.setStrategicObjectsModifier North 12.0 Hostile

aiStrategy.setStrategicObjectsModifier Centre 1.0 Owned
aiStrategy.setStrategicObjectsModifier Centre 6.0 Neutral
aiStrategy.setStrategicObjectsModifier Centre 8.0 Hostile


aiStrategy.createStrategy HoldTheVillage
aiStrategy.Aggression .2
aiStrategy.NumberOfAttacks 1
aiStrategy.NumberOfDefences 2
aiStrategy.TimeLimit 240
aiStrategy.setPrerequisite HoldVillagePrereq
aiStrategy.setStrategicObjectsModifier ControlPoint 1.0 Owned
aiStrategy.setStrategicObjectsModifier ControlPoint 10.0 Neutral
aiStrategy.setStrategicObjectsModifier ControlPoint 8.0 Hostile

aiStrategy.setStrategicObjectsModifier Base 1.0 Owned
aiStrategy.setStrategicObjectsModifier Base 2.0 Neutral
aiStrategy.setStrategicObjectsModifier Base 4.0 Hostile

aiStrategy.setStrategicObjectsModifier Flank 1.0 Owned
aiStrategy.setStrategicObjectsModifier Flank 8.0 Neutral
aiStrategy.setStrategicObjectsModifier Flank 10.0 Hostile

aiStrategy.setStrategicObjectsModifier North 1.0 Owned
aiStrategy.setStrategicObjectsModifier North 10.0 Neutral
aiStrategy.setStrategicObjectsModifier North 12.0 Hostile

aiStrategy.setStrategicObjectsModifier Centre 1.0 Owned
aiStrategy.setStrategicObjectsModifier Centre 12.0 Neutral
aiStrategy.setStrategicObjectsModifier Centre 8.0 Hostile




rem ----------------------------------------------------------------------------
endIf