For some reason the day after I start lend-lease to the french it gets canceled. I looked at the events and there are two that can do this. From experimenting the one triggering is 2049117, I think the thing going wrong is the "NOT = { control = { province = 907 data = -3 } }" part.
The documentation says:
Any idea why the -3 wouldn't work for the USA<->U01 (which is Free France)? The other event that terminates lend lease for Free France uses "data = -1" instead.
The documentation says:
control = { province = a [data = tag] } # checks if province is controlled by country x. If data = -1 or no data then it’s for country receiving event; -2 is Enemy; -3 is allied (war or diplomatic alliance) or event receiver
Any idea why the -3 wouldn't work for the USA<->U01 (which is Free France)? The other event that terminates lend lease for Free France uses "data = -1" instead.
event = {
id = 2049117
random = no
country = USA
trigger = {
event = 2049015 #Lend Lease for Free France
OR = {
AND = {
NOT = { exists = U01 }
NOT = { exists = FRA }
}
NOT = { control = { province = 907 data = -3 } } #Brazzaville not controlled by ally
control = { province = 907 data = USA }
}
}
name = EVT_2049116_NAME
desc = 80001desc
style = 2
picture = "lend_lease"
date = { day = 0 month = january year = 1940 }
offset = 1#15
deathdate = { day = 29 month = june year = 1999 }
action_a = {
name = ACTION_NAME_OK
command = { type = construct which = ic where = 907 value = -10 } #Brazzaville
command = { type = construct which = ic where = 1924 value = 5 } # Dallas - Texas - Southcentral US
command = { type = construct which = ic where = 1887 value = 5 } # Los Angeles - California - Southwest US
command = { type = sleepevent which = 2049116 } #USA France can no longer receive Lend-Lease aid!
}
#}