I'm trying to model 'create cotton at times, pick it up with a brig or transport, take it to West Indies and get WSU and Money'. I've unlocked the West Indies successfully in my mod, but still have issues:
[INDENT]
- The 'cotton' appears as 'static, can't leave the region'. Why? {I added the unit type to the pool, to pursue a theory that static units like this are static because they exceed pool size - this appears to disprove that, at least if the pool is increased the same turn as the uni appears.....} See screenshot.
- My cotton2 event properly identifies the lack of a unit inWest Indies, but then gives a 'true' result and executes the actions anyway.
[/INDENT]
Here's the events and the script report:
SelectFaction = $CSA
SelectFaction = $CSA
StartEvent = merch_pool|1|0|NULL|NULL|NULL|NULL
Conditions
MinDate = 1861/04/01
Actions
ChangeUnitPool = $uni_CSA_Mer;1
EndEvent
SelectFaction = $CSA
StartEvent = cotton_event1|999|1|NULL|NULL|NULL|NULL
Conditions
MinDate = 1861/04/01
MaxDate = 1866/12/31
TurnIndex = 10;16;22;
Probability = 75
Actions
AddToRegList = $Iberville, LA;$Mobile, AL;$Galveston, TX;$New Hanover, NC;$Charleston, SC;
PickFromRegList = NotEnemy
GenMsg
SelectFaction = $CSA
CreateGroup
Posture = $Defensive
SetKind = $Land
InCS = 1
FixType = 0
SetName = Cotton
Apply
CreateUnit
SetType = $uni_CSA_Mer
SetName = Cotton
Apply
EndEvent
SelectFaction = $CSA
StartEvent = cotton_event2|999|1|NULL|NULL|NULL|NULL
Conditions
MinDate = 1861/04/01
MaxDate = 1866/12/31
SelectSubUnits = Area $OMB_WestIndies;Models $mdl_CSA_Mer
EvalSubUnitSel = NULL
Actions
ChangeMoneyPool = 10
ChangeWSUPool = 10
SelectSubUnits = Area $OMB_WestIndies;Models $mdl_CSA_Mer
AlterCuSubUnit = ApplyToList;Model $mdl_CSA_Mer;Kill
EndEvent
------------------------------
Line 20565: SelectFactions, 1 Faction selected: Confederate States of America
Line 20566: Started processing event: cotton_event2
Line 20566: Event already referenced, current occurences 0 Max allowed: 999 <<Active>>
Line 20569: Min date evaluated: 1861/04/01 converted to turn 2671 current turn 2675 True
Line 20570: Max date evaluated: 1866/12/31 converted to turn 2809 current turn 2675 True
Line 20571: SelectSubUnits finished Regions Selected: 1 SubUnits Selected: 0
Line 20572: Evaluate Sub Unit Selected : True
Line 20574: Entering triggered actions for event cotton_event2
Line 20575: ChangeMoneyPool Confederate States of America New money reserve is 14
Line 20576: ChangeWSUPool Confederate States of America New WSU pool is 38
Line 20577: SelectSubUnits finished Regions Selected: 1 SubUnits Selected: 0
Line 20578: [WARNING] AlterCuSubUnit: Selection is empty (Apply To List)
Line 20580: Finished processing event: cotton_event2
Line 20580: ------------------------------
What am I missing?