Usage:
AiStrategy.AddCondition
string number
Argument values:
argument 1: | advMaxOneOwnSouthCond, advMaxTwoOwnEastCond, advMaxTwoOwnWestCond, airPlaneCond, allCPCond, allFriendlyCPCond, alwaysCond, atSecondLineCPs, baseCond, bridgeCond, broadCond, centreCond, closeCond, constCond, ... |
argument 2: | range is 0.002 to 65.0; most commonly 5.0 |
This property is not a part of any defined type of object.
Used in a total of 33 .con files: Prerequisites.con
Parent directories of these .con files: Bf1942/Levels, Bf1942/Game
Example: (from Bf1942/Levels/Battle_of_the_Bulge/AI/prerequisites.con)
if v_arg1 == host
rem ----- Host
rem ----------------------------------------------------------------------------
rem *** Create Prerequisites ***
rem *** German on Battle for the Bulge ***
AiStrategy.CreatePrerequisite westPrereq
AiStrategy.AddCondition westCond 8.0
rem aiStrategy.addCondition timeCond 0.05
AiStrategy.CreatePrerequisite eastPrereq
AiStrategy.AddCondition eastCond 8.0
rem aiStrategy.addCondition timeCond 0.05
AiStrategy.CreatePrerequisite bridgePrereq
AiStrategy.AddCondition bridgeCond 20.0
rem aiStrategy.addCondition timeCond 0.05
AiStrategy.CreatePrerequisite doubleFlankPrereq
AiStrategy.AddCondition doubleFrontCond 15.0
rem aiStrategy.addCondition timeCond 0.05
AiStrategy.CreatePrerequisite finalPushPrereq
AiStrategy.AddCondition singleFrontCond 7.5
rem *** Tobruk British ***
AiStrategy.CreatePrerequisite front3Prereq
AiStrategy.AddCondition front3Cond 5.0
AiStrategy.CreatePrerequisite retakePrereq
AiStrategy.AddCondition retakeCond 12.0
AiStrategy.CreatePrerequisite breakOutPrereq
AiStrategy.AddCondition oneCPLeftCond 45.0
AiStrategy.AddCondition noCPLeftCond 65.0
Go to the AiStrategy properties list page, AiStrategy page, All Properties list, or Main scripting page.