Usage:
AiStrategy.SetPrerequisite
name
Argument values:
argument 1: | 1AttackPrereq, 1RepulsePrereq, 1repulsePrereq, 2AttackPrereq, 2RepulsePrereq, 2repulsePrereq, 3AttackPrereq, airToNavalPrereq, allCPsPrereq, alliedRepulsePrereq, assaultPrereq, attackPrereq, axisRepulsePrereq, ... |
This property is not a part of any defined type of object.
Used in a total of 33 .con files: Strategies.con
Parent directories of these .con files: Bf1942/Levels, Bf1942/Game
Example: (from Bf1942/Levels/Tobruk/ai/Strategies.con)
if v_arg1 == host
rem ----- Host
rem ----------------------------------------------------------------------------
rem *** Create Strategies ***
rem *** German on Tobruk ***
AiStrategy.CreateStrategy flankNorth
AiStrategy.Aggression 1.0
AiStrategy.NumberOfAttacks 2
AiStrategy.NumberOfDefences 0
AiStrategy.TimeLimit 180
AiStrategy.SetPrerequisite flankNorthPrereq
AiStrategy.SetStrategicObjectsModifier Base 0.5
AiStrategy.SetStrategicObjectsModifier Base 2.0 Owned
AiStrategy.SetStrategicObjectsModifier Centre 0.5
AiStrategy.SetStrategicObjectsModifier Centre 2.0 Owned
AiStrategy.SetStrategicObjectsModifier ControlPoint 4.0
AiStrategy.SetStrategicObjectsModifier Flank 10.0 Owned
AiStrategy.SetStrategicObjectsModifier North 5.0 Owned
AiStrategy.SetStrategicObjectsModifier Flank 0.1
AiStrategy.SetStrategicObjectsModifier North 0.2
AiStrategy.CreateStrategy flankSouth
AiStrategy.Aggression 1.0
AiStrategy.NumberOfAttacks 2
AiStrategy.NumberOfDefences 0
AiStrategy.TimeLimit 180
AiStrategy.SetPrerequisite flankSouthPrereq
AiStrategy.SetStrategicObjectsModifier Base 0.5 Hostile
AiStrategy.SetStrategicObjectsModifier Centre 0.5 Hostile
AiStrategy.SetStrategicObjectsModifier Base 0.5 Neutral
AiStrategy.SetStrategicObjectsModifier Centre 0.5 Neutral
AiStrategy.SetStrategicObjectsModifier Base 2.0 Owned
AiStrategy.SetStrategicObjectsModifier Centre 2.0 Owned
AiStrategy.SetStrategicObjectsModifier ControlPoint 4.0
AiStrategy.SetStrategicObjectsModifier Flank 2.0
AiStrategy.SetStrategicObjectsModifier South 5.0
AiStrategy.SetStrategicObjectsModifier Flank 0.5 Owned
AiStrategy.SetStrategicObjectsModifier South 0.2 Owned
AiStrategy.CreateStrategy flankDouble
AiStrategy.Aggression 1.0
AiStrategy.NumberOfAttacks 2
AiStrategy.NumberOfDefences 0
AiStrategy.TimeLimit 200
AiStrategy.SetPrerequisite flankDoublePrereq
AiStrategy.SetStrategicObjectsModifier Base 0.5 Hostile
AiStrategy.SetStrategicObjectsModifier Centre 0.5 Hostile
AiStrategy.SetStrategicObjectsModifier Base 0.5 Neutral
AiStrategy.SetStrategicObjectsModifier Centre 0.5 Neutral
AiStrategy.SetStrategicObjectsModifier Base 2.0 Owned
AiStrategy.SetStrategicObjectsModifier Centre 2.0 Owned
AiStrategy.SetStrategicObjectsModifier ControlPoint 4.0
AiStrategy.SetStrategicObjectsModifier Flank 10.0
AiStrategy.SetStrategicObjectsModifier Flank 0.1 Owned
AiStrategy.CreateStrategy centre
AiStrategy.Aggression 1.0
AiStrategy.NumberOfAttacks 1
AiStrategy.NumberOfDefences 0
AiStrategy.TimeLimit 240
AiStrategy.SetPrerequisite centrePrereq
AiStrategy.SetStrategicObjectsModifier Base 6.0 Hostile
AiStrategy.SetStrategicObjectsModifier Close 6.0 Hostile
AiStrategy.SetStrategicObjectsModifier Base 6.0 Neutral
AiStrategy.SetStrategicObjectsModifier Close 6.0 Neutral
AiStrategy.SetStrategicObjectsModifier Centre 10.0
AiStrategy.SetStrategicObjectsModifier Centre 0.5 Owned
AiStrategy.SetStrategicObjectsModifier ControlPoint 2.0
AiStrategy.SetStrategicObjectsModifier Flank 0.5
AiStrategy.SetStrategicObjectsModifier Flank 3.0 Owned
AiStrategy.CreateStrategy spear
AiStrategy.Aggression 0.8
AiStrategy.NumberOfAttacks 1
AiStrategy.NumberOfDefences 2
AiStrategy.TimeLimit 150
AiStrategy.SetPrerequisite spearPrereq
AiStrategy.SetStrategicObjectsModifier Base 10.0
AiStrategy.SetStrategicObjectsModifier Close 5.0
AiStrategy.SetStrategicObjectsModifier Centre 2.5
AiStrategy.SetStrategicObjectsModifier Base 0.1 Owned
AiStrategy.SetStrategicObjectsModifier Close 0.2 Owned
AiStrategy.SetStrategicObjectsModifier Centre 0.4 Owned
AiStrategy.SetStrategicObjectsModifier ControlPoint 2.0
rem *** British on Tobruk ***
AiStrategy.CreateStrategy holdFront3
AiStrategy.Aggression 0.0
AiStrategy.NumberOfAttacks 0
AiStrategy.NumberOfDefences 3
AiStrategy.TimeLimit 180
AiStrategy.SetPrerequisite front3Prereq
AiStrategy.SetStrategicObjectsModifier ControlPoint 2.0
AiStrategy.SetStrategicObjectsModifier Centre 1.5 Owned
AiStrategy.SetStrategicObjectsModifier Close 2.0 Owned
AiStrategy.SetStrategicObjectsModifier Base 3.0 Owned
AiStrategy.SetStrategicObjectsModifier Safe 0.05 Owned
AiStrategy.SetStrategicObjectsModifier Front 10.0 Owned
AiStrategy.CreateStrategy holdFront2
AiStrategy.Aggression 0.0
AiStrategy.NumberOfAttacks 0
AiStrategy.NumberOfDefences 2
AiStrategy.TimeLimit 180
AiStrategy.SetPrerequisite front2Prereq
AiStrategy.SetStrategicObjectsModifier Centre 1.5 Owned
AiStrategy.SetStrategicObjectsModifier Close 2.0 Owned
AiStrategy.SetStrategicObjectsModifier Base 3.0 Owned
AiStrategy.SetStrategicObjectsModifier Safe 0.05 Owned
AiStrategy.SetStrategicObjectsModifier Front 10.0 Owned
AiStrategy.SetStrategicObjectsModifier ControlPoint 2.0
AiStrategy.CreateStrategy retake
AiStrategy.Aggression 0.4
AiStrategy.NumberOfAttacks 1
AiStrategy.NumberOfDefences 2
AiStrategy.TimeLimit 180
AiStrategy.SetPrerequisite retakePrereq
AiStrategy.SetStrategicObjectsModifier Centre 1.5 Owned
AiStrategy.SetStrategicObjectsModifier Close 2.0 Owned
AiStrategy.SetStrategicObjectsModifier Base 3.0 Owned
AiStrategy.SetStrategicObjectsModifier Safe 0.05 Owned
AiStrategy.SetStrategicObjectsModifier Front 10.0 Owned
AiStrategy.SetStrategicObjectsModifier ControlPoint 2.0
AiStrategy.CreateStrategy breakOut
AiStrategy.Aggression 1.0
AiStrategy.NumberOfAttacks 1
AiStrategy.NumberOfDefences 0
AiStrategy.SetPrerequisite breakOutPrereq
AiStrategy.SetStrategicObjectsModifier Centre 1.5 Owned
AiStrategy.SetStrategicObjectsModifier Close 2.0
AiStrategy.SetStrategicObjectsModifier Base 3.0
AiStrategy.SetStrategicObjectsModifier Safe 0.05 Owned
AiStrategy.SetStrategicObjectsModifier Front 10.0
AiStrategy.SetStrategicObjectsModifier ControlPoint 2.0
AiStrategy.CreateStrategy retakeBase
AiStrategy.Aggression 1.0
AiStrategy.NumberOfAttacks 1
AiStrategy.NumberOfDefences 0
AiStrategy.SetPrerequisite retakeBasePrereq
AiStrategy.SetStrategicObjectsModifier Base 10.0
AiStrategy.SetStrategicObjectsModifier Safe 0.05 Owned
AiStrategy.SetStrategicObjectsModifier ControlPoint 10.0
Go to the AiStrategy properties list page, AiStrategy page, All Properties list, or Main scripting page.