Event Firing Despite Conditions not satisfied
Posted: Thu Apr 04, 2013 4:36 pm
The event giving France protectorate Status in the Congo (Gabon) is firing even though Prussia (Me) has established it as a protectorate. Here is the event code:
SelectFaction = $FRA
SelectRegion = $Gabon
StartEvent = evt_nam_FRA_TekeTreaty1880|1|2|evt_txt_FRA_TekeTreaty1880|Event-img_FRA_TekeTreaty1880|$Gabon|NULL
Conditions
SelectFaction = $CMN
EvalColStatusArea = $Colony_Congo;<;$colProtectorate
MinDate = 1880/09/10
MaxDate = 1899/12/31
Probability = 50
Actions
DescEvent = evt_desc_FRA_TekeTreaty1880
SelectFaction = $FRA
SetColStatusArea = $Colony_Congo;$colProtectorate
ChgVPCount = 100
CreateStruc
SetType = $CONSULATE
SetName = Palais du Résident
Apply
SelectRegion = $Gabon
ChgColonialPen = 50
SelectRegion = $Makokou
ChgColonialPen = 10
SelectRegion = $Mayumba
ChgColonialPen = 10
SelectRegion = $Impfondo
ChgColonialPen = 10
SelectRegion = $Djambala
ChgColonialPen = 10
SelectRegion = $Madingou
ChgColonialPen = 10
SelectRegion = $Nkuna
ChgColonialPen = 10
SelectRegion = $Moanda
ChgColonialPen = 10
EndEvent
It is clear that the it is intended to not fire if someone else has claimed the area. When it fires, it forces all my units out, keeps my buildings, but prevents me from doing anything further in the area. Any reason for this to happen? I have turned the event off by changing the 1 to 0 in the startevent line. If anyone knows how to make that conditional text work properly, the help would be appreciated.
SelectFaction = $FRA
SelectRegion = $Gabon
StartEvent = evt_nam_FRA_TekeTreaty1880|1|2|evt_txt_FRA_TekeTreaty1880|Event-img_FRA_TekeTreaty1880|$Gabon|NULL
Conditions
SelectFaction = $CMN
EvalColStatusArea = $Colony_Congo;<;$colProtectorate
MinDate = 1880/09/10
MaxDate = 1899/12/31
Probability = 50
Actions
DescEvent = evt_desc_FRA_TekeTreaty1880
SelectFaction = $FRA
SetColStatusArea = $Colony_Congo;$colProtectorate
ChgVPCount = 100
CreateStruc
SetType = $CONSULATE
SetName = Palais du Résident
Apply
SelectRegion = $Gabon
ChgColonialPen = 50
SelectRegion = $Makokou
ChgColonialPen = 10
SelectRegion = $Mayumba
ChgColonialPen = 10
SelectRegion = $Impfondo
ChgColonialPen = 10
SelectRegion = $Djambala
ChgColonialPen = 10
SelectRegion = $Madingou
ChgColonialPen = 10
SelectRegion = $Nkuna
ChgColonialPen = 10
SelectRegion = $Moanda
ChgColonialPen = 10
EndEvent
It is clear that the it is intended to not fire if someone else has claimed the area. When it fires, it forces all my units out, keeps my buildings, but prevents me from doing anything further in the area. Any reason for this to happen? I have turned the event off by changing the 1 to 0 in the startevent line. If anyone knows how to make that conditional text work properly, the help would be appreciated.