event check
Posted: Wed Oct 10, 2007 11:29 pm
I have yet to test these events, but am posting them here in case anyone spots anything wrong with them... They are AI events designed to change generals according to historic plausibility and action.
Union...
Here are the CSA events...
Union...
Code: Select all
SelectFaction = $USA
StartEvent = evt_nam_ArmyinVirginia|1|0|NULL|NULL|NULL|NULL
Conditions
EvalRgnOwned = $Fauquier, VA
EvalRgnOwned = $Harper's Ferry, WV
Actions
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_ArmyinHarpersFerry|1|0|NULL|NULL|NULL|NULL
Conditions
EvalRgnOwned = $Harper's Ferry, WV
Actions
EndEvent
SelectFaction = $USA
SelectRegion = $Prince George's, MD
StartEvent = evt_nam_USA_PapersPushOffensive1861Warning|1|2|evt_txt_USA_PapersPushOffensive1861Warning|Event-img_USA_PapersPushOffensive1861|$Prince George's, MD|125
Conditions
MinDate = 1861/07/01
MaxDate = 1861/08/01
Actions
DescEvent = evt_desc_USA_PapersPushOffensive1861Warning
EndEvent
SelectFaction = $USA
SelectRegion = $Prince George's, MD
StartEvent = evt_nam_USA_PapersPushOffensive1861|1|1|evt_txt_USA_PapersPushOffensive1861|Event-img_USA_PapersPushOffensive1861|$Prince George's, MD|125
Conditions
MinDate = 1861/08/01
MaxDate = 1861/09/01
EvalEvent = evt_nam_ArmyinVirginia;=;0
Actions
DescEvent = evt_desc_USA_PapersPushOffensive1861
ChangeFacMorale = -10
SelUnqUnit = Irvin McDowell
RemoveCuUnit
GenMsg
ChgEvtOccurs = evt_nam_ArmyinVirginia;MaxOccurs;0
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_McDowellDemoted|1|1|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_USA_PapersPushOffensive1861;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Irvin McDowell
Apply
CreateUnit
SetType = $uni_USA_McDowell2
SetName = Irvin McDowell
Apply
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_McClellanMoves1|1|0|NULL|NULL|NULL|94
Conditions
EvalEvent = evt_nam_USA_PapersPushOffensive1861;=;1
SelUnqSubUnit = George B. McClellan
Actions
RemoveCuSubUnit = George B. McClellan
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_McClellanTakesCommand|1|1|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_USA_McClellanMoves1;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Army of the Potomac
Apply
CreateUnit
GMEParam = Army of the Potomac
SetType = $uni_USA_HqBM2
SetName = Army of the Potomac
Apply
CreateUnit
SetCommit = 1
SetType = $uni_USA_McClellan3
SetName = George B. McClellan
Apply
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_PattersonNotRetained|1|1|NULL|NULL|NULL|94
Conditions
MinDate = 1861/07/31
MaxDate = 1861/09/01
SelUnqSubUnit = Robert Patterson
EvalEvent = evt_nam_ArmyinHarpersFerry;=;0
Actions
DescEvent = evt_desc_USA_PattersonNotRetained1861
RemoveCuSubUnit = Robert Patterson
ChgEvtOccurs = evt_nam_ArmyinHarpersFerry;MaxOccurs;0
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_McClellanFired|1|1|NULL|NULL|NULL|NULL
Conditions
MinDate = 1862/11/01
EvalMorale = <;100
CheckAILevel = 1
EvalEvent = evt_nam_USA_McClellanTakesCommand;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelUnqUnit = George B. McClellan
RemoveCuUnit
GenMsg
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_BurnsideMoves1|1|0|NULL|NULL|NULL|94
Conditions
EvalEvent = evt_nam_USA_McClellanFired;=;1
EvalEvent = evt_nam_USA_HookerMoves1;=;0
Probability = 50
SelUnqSubUnit = Ambrose Burnside
Actions
RemoveCuSubUnit = Ambrose Burnside
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_BurnsideTakesCommand|1|1|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_USA_BurnsideMoves1;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Army of the Potomac
Apply
CreateUnit
GMEParam = Army of the Potomac
SetType = $uni_USA_HqBM2
SetName = Army of the Potomac
Apply
CreateUnit
SetCommit = 1
SetType = $uni_USA_Burnside3
SetName = Ambrose Burnside
Apply
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_HookerMoves1|1|0|NULL|NULL|NULL|94
Conditions
EvalEvent = evt_nam_USA_McClellanFired;=;1
EvalEvent = evt_nam_USA_BurnsideMoves1;=;0
Probability = 50
SelUnqSubUnit = Joseph B. Hooker
Actions
RemoveCuSubUnit = Joseph B. Hooker
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_HookerTakesCommand1|1|1|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_USA_HookerMoves1;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Army of the Potomac
Apply
CreateUnit
GMEParam = Army of the Potomac
SetType = $uni_USA_HqBM2
SetName = Army of the Potomac
Apply
CreateUnit
SetCommit = 1
SetType = $uni_USA_Hooker3
SetName = Joseph B. Hooker
Apply
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_BurnsideFired|1|1|NULL|NULL|NULL|NULL
Conditions
MinDate = 1863/01/31
EvalMorale = <;100
CheckAILevel = 1
EvalEvent = evt_nam_USA_BurnsideTakesCommand;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelUnqUnit = Ambrose Burnside
RemoveCuUnit
GenMsg
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_BurnsideDemoted|1|1|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_USA_BurnsideFired;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Ambrose Burnside
Apply
CreateUnit
SetType = $uni_USA_Burnside3
SetName = Ambrose Burnside
Apply
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_HookerMoves2|1|0|NULL|NULL|NULL|94
Conditions
EvalEvent = evt_nam_USA_BurnsideFired;=;1
SelUnqSubUnit = Joseph B. Hooker
Actions
RemoveCuSubUnit = Joseph B. Hooker
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_HookerTakesCommand2|1|1|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_USA_HookerMoves2;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Army of the Potomac
Apply
CreateUnit
GMEParam = Army of the Potomac
SetType = $uni_USA_HqBM2
SetName = Army of the Potomac
Apply
CreateUnit
SetCommit = 1
SetType = $uni_USA_Hooker3
SetName = Joseph B. Hooker
Apply
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_HookerFired1|1|1|NULL|NULL|NULL|NULL
Conditions
MinDate = 1863/07/01
EvalEvent = evt_nam_USA_HookerMoves1;=;1
EvalMorale = <;100
CheckAILevel = 1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelUnqUnit = Joseph B. Hooker
RemoveCuUnit
GenMsg
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_HookerDemotedMovesWest1|1|1|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_USA_HookerFired1;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Joseph B. Hooker
Apply
CreateUnit
SetType = $uni_USA_Hooker3
SetName = Joseph B. Hooker
Apply
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_MeadeMoves1|1|0|NULL|NULL|NULL|94
Conditions
EvalEvent = evt_nam_USA_HookerFired1;=;1
SelUnqSubUnit = George G. Meade
Actions
RemoveCuSubUnit = George G. Meade
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_MeadeTakesCommand1|1|1|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_USA_MeadeMoves1;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Army of the Potomac
Apply
CreateUnit
GMEParam = Army of the Potomac
SetType = $uni_USA_HqBM2
SetName = Army of the Potomac
Apply
CreateUnit
SetCommit = 1
SetType = $uni_USA_Meade3
SetName = George G. Meade
Apply
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_HookerFired2|1|1|NULL|NULL|NULL|NULL
Conditions
MinDate = 1863/07/01
EvalEvent = evt_nam_USA_HookerMoves2;=;1
EvalMorale = <;100
CheckAILevel = 1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelUnqUnit = Joseph B. Hooker
RemoveCuUnit
GenMsg
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_HookerDemotedMovesWest2|1|1|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_USA_HookerFired2;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Joseph B. Hooker
Apply
CreateUnit
SetType = $uni_USA_Hooker3
SetName = Joseph B. Hooker
Apply
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_MeadeMoves2|1|0|NULL|NULL|NULL|94
Conditions
EvalEvent = evt_nam_USA_HookerFired2;=;1
SelUnqSubUnit = George G. Meade
Actions
RemoveCuSubUnit = George G. Meade
EndEvent
SelectFaction = $USA
StartEvent = evt_nam_USA_MeadeTakesCommand2|1|1|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_USA_MeadeMoves2;=;1
Actions
SelectRegion = $Prince George's, MD
PickFromRegList = NotEnemy;NotAdj
GenMsg
SelectRegInArea = $MD;Squared;OwnedCities;CondSkip
GenMsg
SelectRegion = $Philadelphia, PA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $USA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Army of the Potomac
Apply
CreateUnit
GMEParam = Army of the Potomac
SetType = $uni_USA_HqBM2
SetName = Army of the Potomac
Apply
CreateUnit
SetCommit = 1
SetType = $uni_USA_Meade3
SetName = George G. Meade
Apply
EndEvent
Here are the CSA events...
Code: Select all
SelectFaction = $CSA
StartEvent = evt_nam_CSA_Beauregard1|1|0|NULL|NULL|NULL|NULL
Conditions
MinDate = 1861/10/01
MaxDate = 1861/12/31
CheckAILevel = 1
Actions
SelUnqUnit = P.G.T. Beauregard
RemoveCuUnit
GenMsg
EndEvent
SelectFaction = $CSA
StartEvent = evt_nam_USA_BeauregardMovesWest|1|0|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_CSA_Beauregard1;=;1
Actions
SelectRegion = $Richmond, VA
SelectRegion = $Atlanta, GA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $CSA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = P.G.T. Beauregard
Apply
CreateUnit
SetType = $uni_CSA_Beauregard3
SetName = P.G.T. Beauregard
Apply
EndEvent
SelectFaction = $CSA
StartEvent = evt_nam_CSA_Johnston1|1|0|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_CSA_Beauregard1;=;1
Actions
SelUnqUnit = Joseph E. Johnston
RemoveCuUnit
GenMsg
EndEvent
SelectFaction = $CSA
StartEvent = evt_nam_USA_JohnstonTakesCommand|1|0|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_CSA_Johnston1;=;1
Actions
SelectRegion = $Richmond, VA
SelectRegion = $Atlanta, GA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $CSA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Army of Northern Virginia
Apply
CreateUnit
GMEParam = Army of Northern Virginia
SetType = $uni_CSA_HqBM2
SetName = Army of Northern Virginia
Apply
CreateUnit
SetCommit = 1
SetType = $uni_CSA_JJohnston3
SetName = Joseph E. Johnston
Apply
EndEvent
SelectFaction = $CSA
StartEvent = evt_nam_CSA_JohnstonWounded|1|0|NULL|NULL|NULL|NULL
Conditions
MinDate = 1862/05/01
MaxDate = 1862/12/31
Probability = 20
Actions
SelUnqUnit = Joseph E. Johnston
RemoveCuUnit
GenMsg
EndEvent
SelectFaction = $CSA
StartEvent = evt_nam_USA_JohnstonMovesWest|1|0|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_CSA_JohnstonWounded;=;1
Actions
SelectRegion = $Richmond, VA
SelectRegion = $Atlanta, GA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $CSA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 2
SetName = Joseph E. Johnston
Apply
CreateUnit
SetType = $uni_CSA_JJohnston3
SetName = Joseph E. Johnston
Apply
EndEvent
SelectFaction = $CSA
StartEvent = evt_nam_CSA_Lee1|1|0|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_CSA_JohnstonWounded;=;1
Actions
SelUnqUnit = Robert E. Lee
RemoveCuUnit
GenMsg
EndEvent
SelectFaction = $CSA
StartEvent = evt_nam_USA_LeeTakesCommand|1|0|NULL|NULL|NULL|NULL
Conditions
EvalEvent = evt_nam_CSA_Lee1;=;1
Actions
SelectRegion = $Richmond, VA
SelectRegion = $Atlanta, GA;CondSkip
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $CSA
CreateGroup
Posture = $Defensive
SetKind = $Land
Entranch = 0
InCS = 0
FixType = 0
SetName = Army of Northern Virginia
Apply
CreateUnit
GMEParam = Army of Northern Virginia
SetType = $uni_CSA_HqBM2
SetName = Army of Northern Virginia
Apply
CreateUnit
SetCommit = 1
SetType = $uni_CSA_RELee3
SetName = Robert E. Lee
Apply
EndEvent