I've been looking at the Union's General War Order 2 events.
Code: Select all
SelectFaction = $USA
StartEvent = evt_nam_ArmyaroundWashington|1|0|NULL|NULL|NULL|NULL
Conditions
CountUnits = $Around_Washington;1;$USA;-1;>=;12
Actions
EndEvent
SelectFaction = $USA
SelectRegion = $Prince George's, MD
StartEvent = evt_nam_USA_GeneralWarOrderTwo1862|4|1|NULL|NULL|$Prince George's, MD|NULL
Conditions
MinDate = 1862/04/01
MaxDate = 1863/06/01
EvalEvent = evt_nam_ArmyaroundWashington;=;0
Actions
DescEvent = evt_desc_USA_GeneralWarOrderTwo1862
ChgVPCount = -50
ChgEvtOccurs = evt_nam_ArmyaroundWashington;MaxOccurs;0
EndEvent
Do these work as intended? I *think* that the ArmyaroundWashington event occurs on the first turn during the game where there are 12 units near Washington. With maxOccurs=1, it never occurs again. Then, on 1862/04/01, EvalEvent evt_nam_ArmyaroundWashington=1, so the WarOrder2 event does not happen -- and can never happen -- as long as at some point in the past, there were 12 units near Washington.
A couple of possibilities:
1) these events are buggy
2) EvalEvent actually causes the event to be reevaluated at that point.
3) some other bit of confusion on my part that I've missed
Which is it?