ajnatalo
Sergeant
Posts: 82
Joined: Tue Jan 29, 2013 10:50 pm
Location: Syracuse, NY

Event Firing Despite Conditions not satisfied

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.

User avatar
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Thu Apr 04, 2013 4:42 pm

This need to be reported to Pocus, because the script is correct. So if it did not work as intended, we need a save of the turn when the event occured and the script report too
Image

ajnatalo
Sergeant
Posts: 82
Joined: Tue Jan 29, 2013 10:50 pm
Location: Syracuse, NY

Thu Apr 04, 2013 5:22 pm

Here is the save file and log from when it fired.
Attachments
1850 GC~GER.zip
(1.82 MiB) Downloaded 133 times

[The extension txt has been deactivated and can no longer be displayed.]


Return to “Pride of Nations”

Who is online

Users browsing this forum: No registered users and 12 guests